Skip to main content

Restore a trashed or archived document

POST 

/api/v1/documents/:document_id/restore

Requires document-local edit access, an exact same-origin proof for cookie requests, and the current strong ETag. Restoring an archived document requires documents.archive; restoring a trashed document requires documents.trash and returns it to its saved active or archived state.

Request​

Responses​

Updated lifecycle state

Response Headers
    ETag

    Strong decimal revision after the transition

    X-Request-Id

    Opaque request correlation identifier. ProblemDetails.requestId carries the same value on JSON failures.