Replace a form template file
Replaces a pdf-form template’s blank form: re-parses the AcroForm to recompute fields/modality, resets cached detection, writes an immutable v{n+1} R2 object, and bumps the version (old version objects retained for pinned fill actions). No engine lint. A DOCX/Liquid row uses PUT /:id/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