PATCH /v1/templates/{templateId}
Partially update a template with a JSON request body.
PATCH /v1/templates/{templateId} updates an existing template.
Authentication
Send an organization API key in x-api-key or
Authorization: Bearer <key>.
Path Parameters
| Name | Type | Description |
|---|---|---|
templateId | string (uuid) | UUID of the template to update. |
Request Body
Send a JSON object containing at least one of the following fields.
| Name | Type | Description |
|---|---|---|
name | string | Template name, from 1 to 255 characters. |
description | string or null | Short template description, up to 1,000 characters. Send null to clear it. |
author | string (uuid) or null | Member ID of the template author. |
labelIds | array of strings (uuid) | Labels assigned to the template. |
active | boolean | Whether the template can be used to create documents. |
content | array | Structured template content. |
metadata | array | Template metadata and field definitions. |
Example
curl -X PATCH "https://api.blueputto.com/v1/templates/TEMPLATE_ID" \
-H "x-api-key: YOUR_API_KEY" \
-H "content-type: application/json" \
-d '{"active":false}'Success Response
200 OK
{
"data": {}
}Error Responses
400 Bad Request401 Unauthorized404 Not Found429 Too Many Requests