v1
latestOpenAPI 3.1.02026-07-2618690613.4 KBDocuments
Archive draft
Archive the current draft of the specified document. Archived drafts are placed in the Archived section of the Drafts drawer in the document's workbook and retained for 30 days.
If a branch is specified, the current draft on the branch is archived.
delete/v1/documents/{documentId}/draft
Path parameters
documentIdstring required
The ID of the document to archive the draft from. To retrieve the ID, navigate to File > Document settings in the document and then click Settings. The Identifier field contains the document ID.
Request body
Response
Draft archived successfully
Example response
{
"message": "Draft deleted successfully"
}