POST
/api/v1/trash/{slug}/restoreRestore from the trash
Puts a deleted item back where it was, with the same link, access and people, together with what was deleted with it: a page's sub-pages, or a folder's folders and items. If the place it came from is gone, it comes back as close as it can and notes says where. Send a token as its owner or an admin of its workspace, or the document's edit secret.
Guide: Trash
Code samples and Try itPath parameters
#slugstringRequiredThe item's address, or a deleted folder's id, from List the trash.
Headers
#X-Edit-SecretstringThe document's edit secret (
sk_…), for a document published without an account. See Edit key.
Responses
#200OK.422The request didn't validate.detaillists each problem, with where it is (loc) and why (msg).429Too many requests from your IP address. Wait the seconds inRetry-After.