Replace a template file
Replaces a DOCX/Liquid template’s file: re-lints, writes an immutable v{n+1} R2 object, and bumps the version (old version objects are retained for pinned actions). A pdf-form row replaces its file via POST /:id/form-file instead. Requires playbook:create.
Authentication
AuthorizationBearer
WorkOS session JWT or an organization API key, sent as Authorization: Bearer <token>.
Path parameters
id
Response
The updated template.
template
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