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_idrequiredpath | 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
| Field | Type | Description |
|---|---|---|
detail | ValidationError[] | —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_..."