documents

Restores the specified document.

Changed on

Restores the specified document from the trash. Related versions, content, and child documents are restored asynchronously. Restoring an already active document has no effect. <Check title="Required Permissions" icon="key">The user must have at least write permission for the specified document.</Check>

post/documents/trash/{documentId}/restore

Request

  • Base URL: https://api.awork.com/api/v1
  • URL: https://api.awork.com/api/v1/documents/trash/{documentId}/restore
  • Auth: HTTP bearer

Path parameters

documentIdstring uuid required

The id of the document to restore.

Query parameters

alsoRestoreChildrenboolean

Whether to also restore children documents.

Response

No Content

object required

Changes

    • warning

      deleted the header request parameter Authorization

    • info

      the endpoint scheme security oauth2 was added to the API

    • info

      api operation id PostDocumentsTrashRestoreByDocumentId removed and replaced with documents_PostDocumentsTrashRestoreByDocumentId