Pular para o conteúdo principal
PATCH
Update a template

Autorizações

Authorization
string
header
obrigatório

JWT bearer token issued by the identity provider.

Parâmetros de caminho

id
string
obrigatório

Template ID

Corpo

multipart/form-data

Template multipart form

category
string

Report family this template belongs to — what a consumer routes by. Held to the grammar ^[a-z0-9_-]{1,100}$ AFTER normalisation: lower-case letters, digits, underscores and hyphens, at most 100 characters. Case and surrounding spaces are corrected, so 'CADOC' and ' cadoc ' are both stored as 'cadoc'; a space inside the value, a dot, a slash or an accent is refused rather than rewritten. Required on create. On update it is required only when the template does not already have a category — one that already carries a category keeps it and need not repeat it, which is why the update operation does not list this field as required.

Pattern: ^[a-z0-9_-]{1,100}$
Exemplo:

"cadoc"

description
string

Human-readable template description

Exemplo:

"Monthly financial report"

outputFormat
string

Generated report output format

Exemplo:

"html"

template
file

Pongo2 template file

Resposta

OK

category
string

Report family this template belongs to, lower-case; empty on a template stored before categories existed

Exemplo:

"cadoc"

createdAt
string<date-time>

Template creation timestamp in UTC

Exemplo:

"2021-01-01T00:00:00Z"

description
string

Human-readable template description

Exemplo:

"Monthly financial report"

fileName
string

Stored template filename

Exemplo:

"0196159b-4f26-7300-b3d9-f4f68a7c85f3_1744119295.tpl"

id
string

Unique template identifier

Exemplo:

"00000000-0000-0000-0000-000000000000"

outputFormat
string

Format generated from this template

Exemplo:

"HTML"

parameters
object[] | null

Generation parameters this template declares; a report request must answer each required one. Empty when the template declares none

updatedAt
string<date-time>

Most recent template update timestamp in UTC

Exemplo:

"2021-01-01T00:00:00Z"

warnings
object[] | null

Non-fatal mapped-field validation warnings returned when a data source is unavailable

Exemplo: