Update a template draft

Apply an ordered list of operations to the template's draft, atomically. Later operations see the effects of earlier ones, and if any operation fails none are applied. Changes are not visible to end users until the template is published. Requires edit permission on the template.

Path Params
string
required

The unique identifier for the template whose draft should be updated.

Body Params

UpdateTemplateDraftRequest parameters for rpc UpdateTemplateDraft.

operations
array of objects

The operations to apply, in order and atomically. Later operations see the
effects of earlier ones, and if any operation fails none are applied. The
draft is created from the published content when it does not exist.

operations
string

Apply only if the draft is exactly at this revision, taken from a prior
read or mutation. Otherwise ABORTED / STALE_DRAFT_REVISION, with the
current token in the ErrorInfo metadata under current_draft_revision,
which is empty when the draft no longer exists.

Omit to apply to the draft as it stands. Use this when the change must not
land on top of edits you have not seen.

Responses

Language
Credentials
Bearer
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json