Skip to main content
POST
/
v1
/
documents
/
{identifier}
/
upgrade
Upgrade dashboard layout
curl --request POST \
  --url https://{instance}.omniapp.co/api/v1/documents/{identifier}/upgrade \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "clearExistingDraft": true
}
'
{
  "identifier": "abc123",
  "upgraded": true
}

Authorizations

Authorization
string
header
required

Can be either an Organization API Key or Personal Access Token (PAT).

Include in the Authorization header as: Bearer YOUR_TOKEN

Path Parameters

identifier
string
required

Document identifier (either document ID or identifier slug)

Body

application/json
clearExistingDraft
boolean
default:false

When upgrading a published document, discard any existing draft instead of failing with a conflict.

Response

Layout upgraded, or no-op if the document already had advanced layout.

identifier
string
required

Document identifier

upgraded
boolean
required

True when the layout was upgraded, false when the document already had advanced layout (no-op).