Update a template

View as Markdown

Patches a template’s name, description, binding, or sample data (the slug is immutable). A binding change on a DOCX/Liquid template re-lints and bumps the version. Requires playbook:create.

Authentication

AuthorizationBearer

WorkOS session JWT or an organization API key, sent as Authorization: Bearer <token>.

Path parameters

idstringRequired

Request

This endpoint expects an object.
namestringOptional1-200 characters
descriptionstringOptional<=5000 characters
bindingobjectOptional
sampleDatamap from strings to any or nullOptional

Response

The updated template.
templateobject

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
422
Unprocessable Entity Error
503
Service Unavailable Error