Need help? Get answers from the docs with Omni's in-app AI! Log in to your Omni instance and open the Omni Agent in the sidebar.
curl --request DELETE \
--url https://{instance}.omniapp.co/api/v1/documents/{documentId}/draft \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"branchId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'{
"message": "Draft deleted successfully"
}Archives the current draft of the specified document. Archived drafts will be placed in the 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.
curl --request DELETE \
--url https://{instance}.omniapp.co/api/v1/documents/{documentId}/draft \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"branchId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'{
"message": "Draft deleted successfully"
}Documentation Index
Fetch the complete documentation index at: https://docs.omni.co/llms.txt
Use this file to discover all available pages before exploring further.
Can be either an Organization API Key or Personal Access Token (PAT).
Include in the Authorization header as: Bearer YOUR_TOKEN
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.
The UUID of the branch the draft is attached to. To retrieve branch IDs, use the List models endpoint with modelKind=BRANCH.
Draft archived successfully
"Draft deleted successfully"
Was this page helpful?