Discard a template draft

Delete the template's draft. The published template is untouched. Requires edit permission on the template and the draft's current revision token.

Path Params
string
required

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

Query Params
string
required

Discard 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.

Required, unlike on UpdateTemplateDraft, because a discard destroys work
and cannot be undone. The draft may hold someone else's unpublished edits,
so only a draft you have read can be discarded.

Responses

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