POST/api/v1/trash/{slug}/restore

Restore 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.

Token optionalOr edit secret10 per minute per IPMCP: restore_document

Guide: Trash

Code samples and Try it

Path parameters

#
  • slugstringRequired

    The item's address, or a deleted folder's id, from List the trash.

Headers

#
  • X-Edit-Secretstring

    The document's edit secret (sk_…), for a document published without an account. See Edit key.

Responses

#
  • 200OK.
  • 422The request didn't validate. detail lists each problem, with where it is (loc) and why (msg).
  • 429Too many requests from your IP address. Wait the seconds in Retry-After.
Did this page help?