Saltar al contenido principal
PATCH
/
v1
/
templates
/
{id}
Actualizar una plantilla
curl --request PATCH \
  --url https://reporter.sandbox.lerian.net/v1/templates/{id} \
  --header 'Content-Type: multipart/form-data' \
  --form template=@example-file \
  --form outputFormat=HTML \
  --form 'description=Informe financiero'
{
"id": "0196b1d2-399c-7aff-8941-3ea99d1525d4",
"outputFormat": "HTML",
"description": "Informe financiero",
"filename": "0196b1d2-399c-7aff-8941-3ea99d1525d4.tpl",
"createdAt": "2025-05-08T21:34:26.716Z",
"updatedAt": "2025-05-08T21:50:24.844Z",
"deletedAt": null
}

Headers

Authorization
string

The authorization token. Important: This header is required if your environment has the Access Manager plugin enabled.

Content-Type
string

Tipo de contenido de la solicitud. Importante: para este endpoint debe ser multipart/form-data.

X-Organization-id
string

The unique identifier of the Organization associated with the request.

Path Parameters

id
string
required

Unique identifier of the template that you want to retrieve (UUID).

Body

multipart/form-data
template
file
required

Nuevo archivo de plantilla

outputFormat
enum<string>
required

Formato de salida que generará la nueva plantilla.

Opciones disponibles:
HTML,
CSV,
XML,
PDF,
TXT
description
string

Descripción breve de la nueva plantilla.

Response

Indica que el recurso se actualizó correctamente y que la operación se completó según lo esperado.

id
string

ID único que identifica la plantilla. Sigue el formato UUID.

outputFormat
string

Formato de salida generado (por ejemplo, HTML, CSV, PDF, TXT, XML).

description
string

Describe brevemente para qué sirve la plantilla o qué contiene.

fileName
string

Nombre del archivo de plantilla tal como está guardado en el sistema. Sigue el formato <template_id>.tpl.

createdAt
string

Fecha y hora en que se creó la plantilla.

updatedAt
string

Marca de tiempo que indica la última vez que se actualizó la plantilla.

deletedAt
string

Marca de tiempo que indica cuándo la plantilla se eliminó lógicamente.