Create/reuse draft and replace app content
This API is currently in development and may change.
Create or reuse the document’s main draft and replace the existing app. Use the draftIdentifier in the response to call the Publish draft API and publish the changes.
Authorizations
Can be either an Organization API Key or Personal Access Token (PAT).
Include in the Authorization header as: Bearer YOUR_TOKEN
Path Parameters
Document identifier — either the URL slug (e.g. abc123) or the canonical workbook UUID.
"abc123"
Body
The complete app HTML document. Replaces the current HTML; capped at 2 MiB of UTF-8. maxLength counts characters — the byte cap is what the server enforces. Every write appends an immutable revision.
1 - 2097152When present, replaces the app settings; omitted fields take their locked-down defaults. When absent, the current settings are retained.
Response
Draft created or reused and app written. Use the draftIdentifier in the response to call the Publish draft API and publish the changes.
Published document identifier the draft targets.
"def456"
Identifier of the draft the patch was applied to.
"abc123"
Document name.
"Blob Sales"
Document description.
"Overview of daily Blobs R Us Sales"
Included only when non-blocking warnings are encountered. Currently, external resource hosts the app's iframe CSP will block until an Organization Admin allows them. The write itself succeeded.

