Update a template
PUT
Updates a template's mutable fields (name, description, spec, tags). target and
format are immutable. Requires an API key with the write action scoped to the template.
Loading code example
Loading code example
Authorizations
apiKeystringheaderrequired
API key passed in the header.
Path Parameters
templateIdstringrequired
The template id.
Body
The fields to update; omitted fields are unchanged.
namenull | stringNew name, if changing. A provided value must be non-blank.
descriptionnull | stringNew description, if changing.
specanytagsnull | arrayWhen provided, replaces the tag set.
Response
application/json
Updated; returns the template.
templateIdstringnamestringdescriptionstringtargetstringformatstringspecanyspecUnparseablebooleanTrue when the stored spec was not valid JSON (corrupt/legacy row); JsonElement? TemplateResponse.Spec is then null. Reads stay forgiving so one poisoned row can't blank a whole list page.
tagsarray<string>revisioninteger | string<int32>Pattern:
^-?(?:0|[1-9]\d*)$isDeletedbooleancreatedAtstring<date-time>updatedAtnull | string<date-time>createdBystringupdatedBynull | string