documents
Deletes the specified document.
Changed onMoves the specified document to the trash. The document is moved synchronously; child documents and related entities are moved asynchronously. Set alsoDeleteChildren to control whether child documents are included. <Check title="Required Permissions" icon="key">The user must have at least manage permission for the specified document.</Check>
delete/documents/{documentId}
Request
- Base URL: https://api.awork.com/api/v1
- URL: https://api.awork.com/api/v1/documents/{documentId}
- Auth: HTTP bearer
Path parameters
documentIdstring uuid required
The id of the document to delete.
Query parameters
alsoDeleteChildrenboolean
Whether to also delete children documents. If false, the children's parent references are updated to point to the deleted document's parent.
Response
No Content
object required
Changes
- warning
deleted the
headerrequest parameterAuthorization - info
the endpoint scheme security
oauth2was added to the API
- warning
- info
api operation id
DeleteDocumentByIdremoved and replaced withdocuments_DeleteDocumentById
- info