Restore a template

View as Markdown

Restores an archived template to draft. Refuses with a slug conflict when another non-archived library template has since taken this template’s slug. Requires playbook:create.

Authentication

AuthorizationBearer

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

Path parameters

idstringRequired

Response

The restored (draft) template.

templateobject

Errors

401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error