Delete a template
Removes a workspace-owned template and records the deletion on the workspace event ledger; items already created from it are untouched. Requires `resources:write` in the workspace, and an unknown template returns not-found. Send an `Idempotency-Key` header to make retries safe; a replay within the window returns the original response.
Authorization
apiKey Workspace API key created in Workspace settings → API keys. Scopes on the key bound what it can read and write.
In: header
Path Parameters
Response Body
application/json
application/json
application/json
curl -X DELETE "https://example.com/v1/workspaces/string/templates/string"{ "data": { "id": "string" }}{ "_tag": "ApiNotFound", "error": "not_found", "message": "That item does not exist, or this key cannot see it.", "status": 404}{ "_tag": "ApiNotFound", "error": "not_found", "message": "That item does not exist, or this key cannot see it.", "status": 404}Update a template's metadata
Changes name, description, cover, icon, category, tags, or declared inputs. The manifest is write-once, so re-exporting a subtree creates a new template instead; setting `visibility` to `public` is refused because publication is its own permissioned verb. Requires `resources:write` in the workspace, and an unknown template returns not-found. Send an `Idempotency-Key` header to make retries safe; a replay within the window returns the original response.
Publish an approved template to the store
Snapshots the current manifest as a new listing version and makes the template publicly visible, optionally updating its category and tags. Requires `templates:publish` in the owning workspace, and only a template whose review status is `approved` may be published — submit it for review first. Send an `Idempotency-Key` header to make retries safe; a replay within the window returns the original response.