Create a template
Creates a new template. target and format are immutable after creation.
Requires an API key with the write action.
Authorizations
API key passed in the header.
Body
The template to create.
namestringrequiredHuman-readable template name.
descriptionstringOptional description.
targetstringrequiredOutput domain — a `TemplateTarget` name. Immutable after creation (changing it = a new template). Current values: `ThingData`.
formatstringrequiredInput mechanism — a `TemplateFormat` name. Immutable after creation. Current values: `JsonPointer`.
specanyThe mapping spec as a JSON object; its shape is governed by (target, format).
tagsarray<string>Arbitrary user-defined tags.
Response
Created; 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>^-?(?:0|[1-9]\d*)$isDeletedbooleancreatedAtstring<date-time>updatedAtnull | string<date-time>createdBystringupdatedBynull | string