POST /v1/templates
Create a new template by sending a JSON request body.
POST /v1/templates creates a new template.
Authentication
Send an organization API key in x-api-key or
Authorization: Bearer <key>.
Request Body
Send a JSON object. name is required; all other fields are optional.
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Template name, from 1 to 255 characters. |
description | string or null | No | Short template description. |
author | string (uuid) or null | No | UUID of the author. |
labelIds | array of strings (uuid) | No | Labels assigned to the template. |
active | boolean | No | Whether the template is active. Defaults to true. |
Example
curl -X POST "https://api.blueputto.com/v1/templates" \
-H "x-api-key: YOUR_API_KEY" \
-H "content-type: application/json" \
-d '{"name":"Condition report","description":"Reusable condition-report template"}'Success Response
201 Created
{
"data": {}
}Error Responses
400 Bad Request401 Unauthorized404 Not Found429 Too Many Requests