Appearance
Discard draft
DELETE
/api/v1/templates/{id}/draft
Throws away unpublished changes, leaving the published copy untouched. The discarded states stay in the template's history. Succeeds when there is no draft. Bearer tokens must match the template and must not be readonly.
Authorizations
ApiKeyAuth
Long-lived account credential. Create one from the dashboard.
Type
API Key (header: x-api-key)
or
BearerAuth
Short-lived presigned token scoped to a single template (minted via /presigned-url).
Type
HTTP (bearer)
Parameters
Path Parameters
id*
Type
Requiredstring
Example
"bonipyZlnbwtYVSzQO3AA"Responses
Draft discarded, or there was none.
application/json