ts.tpl.update

Update a template.

Update a template.

Requires authentication

Description

Updates an existing report template. Only provided fields are changed.

Parameters

NameTypeRequiredDefaultDescription
idstringYesTemplate ID
namestringNew name
bodystringNew template body
langstringNew language code
statusstringNew status
metadataobjectMetadata to set (replaces existing)

Response

Returns the updated template.

{
  "id": "tpl_a1b2c3d4e5f6...",
  "updated_at": "2026-03-07T12:00:00Z",
  "updated_fields": [
    "name",
    "body"
  ]
}

Errors

CodeDescription
not_authenticatedNo active login for this session
not_foundTemplate not found
invalid_inputNo fields to update