Skip to main content
DELETE
/
v1
/
documents
/
{documentId}
/
draft
Archive draft
curl --request DELETE \
  --url https://{instance}.omniapp.co/api/v1/documents/{documentId}/draft \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "branchId": "<string>"
}
'
{
  "message": "Draft deleted successfully"
}

Authorizations

Authorization
string
header
required

Use either an Organization API Key or Personal Access Token (PAT). Include in the Authorization header as: Bearer YOUR_TOKEN

Path Parameters

documentId
string
required

Document identifier

Body

application/json
branchId
string

Branch identifier for branch-specific drafts

Response

Draft archived successfully

message
string
Example:

"Draft deleted successfully"