Operating system set to macOS
Documentation jurisdiction set to United States
Sign inConnect Claude

Delete Template Api V1 Workstreams Templates Template Id Delete

delete/api/v1/workstreams/templates/{template_id}

Delete template

Delete a template. A WorkStream with any version, run (Cycle) or save record is archived (`status='deleted'`) and everything is kept, so every run page still opens; one with none is removed with its blueprints. Needs the owner or a granted editor AND FGA `workstream:edit`. **Authentication Required:** JWT Bearer token

Path parameters

template_idrequired
path
The template's UUID.

Responses

204Template deleted (archived when it has history)
401Unauthorized
403Not the owner or a granted editor, or FGA refuses workstream:edit
404Template not found
409workstream_has_active_cycles: a Cycle is still running
422Validation Error
FieldTypeDescription
detailValidationError[]—
item shape
503fga_unavailable: authorization service cannot answer
curl https://api.dev.arch.ie/api/v1/workstreams/templates/<template_id> \
  -X DELETE \
  -H "Authorization: Bearer sk_..."
API Reference · Archie for developers