The Open API specification for Synapse is now available for download!

Download Open API Spec

PUT /trashcan/restore/{id}/{parentId}

Moves an entity and its descendants out of the trash can to a new parent. NOTE: This operation cannot be completed if the original parent has been deleted (unless the caller is a member of the Synapse Access and Compliance Team). The service will return a NotFoundException. This is because of the potential security hole arising from allowing access requirements on folders: If an entity is in a restricted folder and then deleted, it cannot be restored unless the new parent has the same restriction level as the original one.

Resource URL

https://repo-prod.prod.sagebase.org/repo/v1/trashcan/restore/{id}/{parentId}

Resource URL Variables
{id} The ID of the entity being restored out of the trash can.
{parentId} The ID of the new parent entity.
Resource Information
Authentication Required
Required OAuth Scopes modify
HTTP Method PUT
Request Object None
Response Object None