Aerovy Platform logo

Update a template

PUThttps://spectra.api.aerovy.com/v2/templates/{templateId}

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 | string

New name, if changing. A provided value must be non-blank.

descriptionnull | string

New description, if changing.

specany
tagsnull | array

When provided, replaces the tag set.

Response

application/json

Updated; returns the template.

templateIdstring
namestring
descriptionstring
targetstring
formatstring
specany
specUnparseableboolean

True 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*)$
isDeletedboolean
createdAtstring<date-time>
updatedAtnull | string<date-time>
createdBystring
updatedBynull | string