Tickets API
POST/api/v1/tickets/templates
Product availabilityAlgaPSAAlgaDesk

Create a ticket template

Creates a reusable ticket template with its whole checklist in one request. Resolve client_id, board_id, category_id and priority_id to UUIDs first (GET /api/v1/clients, /api/v1/boards, /api/v1/categories, /api/v1/tickets/priorities); a reference that does not exist is refused with 400. Leave client_id out for a template every client can use. A second active template with the same name returns 409.

RBAC · ticket_template

Request body

Content type: application/json · schema WorkV1TicketTemplateCreateBody

namestringRequired
Template name, unique among active templates in the tenant.
min length 1 · max length 200
notesstringNullable
Note for your team; never copied onto tickets.
max length 2000
titlestringRequired
Title the created ticket gets. May contain {{client}}, {{contact}}, {{due_date}}, {{month}} and {{year}}, which are filled in per ticket; any other {{token}} is rejected.
min length 1 · max length 500
descriptionstringNullable
Ticket description (plain text or serialized BlockNote JSON).
client_idstring <uuid>Nullable
Client the template belongs to. Omit or null to offer it for every client; set it to offer the template only on that client’s tickets. Resolve the UUID with GET /api/v1/clients first.
board_idstring <uuid>Nullable
Board the created ticket lands on. Resolve with GET /api/v1/boards first.
category_idstring <uuid>Nullable
Category on that board; a subcategory requires its parent category.
subcategory_idstring <uuid>Nullable
priority_idstring <uuid>Nullable
Priority. Resolve with GET /api/v1/tickets/priorities first.
itil_impactintegerNullable
≥ 1 · ≤ 5
itil_urgencyintegerNullable
≥ 1 · ≤ 5
tagsarray of string
Tag text applied to the created ticket (tag definitions are created as needed).
max items 50
itemsstring
min length 1 · max length 100
custom_fieldsobject
Custom field values copied onto the ticket.
offer_for_manual_useboolean
Whether the template is offered for manual ticket creation. Defaults to true; turn it off for templates only recurring schedules use.
checklistarray of object
The whole checklist, in order. On update this list replaces the stored items.
max items 200
itemsobject
item_namestringRequired
Checklist item text.
min length 1 · max length 500
descriptionstringNullable
is_requiredbooleanRequired
Whether the item gates ticket closure.
checklist_template_idstring <uuid>Nullable
Checklist template the item came from; leave null for a plain item.
linksarray of object
Documentation links (for example Hudu articles), in order. Every ticket created from the template (recurring schedule, instantiate, or manual) gets them as reference external links, readable at GET /api/v1/tickets/{id}/external-links. Duplicate (system, external_id) pairs are refused. On update this list replaces the stored links.
max items 50
itemsobject
systemstringRequired
Registry key of the external system: a built-in key ('hudu', 'generic', 'github', ...) or custom:<slug>.
min length 1
external_idstringRequired
Identifier of the record in the external system, e.g. the Hudu article id.
min length 1
realmstringNullable
Repository, server or workspace, for systems whose URL template needs one.
urlstring <uri>Nullable
Absolute http(s) link-out. Required for systems with no URL template (hudu, generic). Stored as given and never re-resolved when tickets are created.
titlestringNullable
Human title shown on the ticket, e.g. the article name.
max length 500
metadataobjectNullable
Free-form details, e.g. { hudu: { article_id, company_id } }.

Response body

Success response 201 · schema WorkV1ApiSuccess

dataanyOfRequired
anyOf (option 1)object
anyOf (option 2)array of object
itemsobject
metaobject

Response codes

201
Ticket template created, with its checklist.
400
Validation failure or a field that points at something that does not exist.
401
API key missing/invalid.
403
RBAC denied for ticket_template create.
409
Another active template already has this name.
500
Unexpected controller/service failure.