Delete an AI artifact
Soft-deletes the artifact and returns its id. Requires a workspace member with the `ai:write` permission; deleting an already-deleted artifact is a no-op rather than an error. 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
Query Parameters
Response Body
application/json
application/json
application/json
curl -X DELETE "https://example.com/v1/workspaces/string/ai-artifacts/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 an AI artifact
Applies a partial edit to an artifact's title, summary, content, status, or references. Requires a workspace member with the `ai:write` permission; an archived artifact cannot be updated, and an unknown artifact is reported as not found. Send an `Idempotency-Key` header to make retries safe; a replay within the window returns the original response.
Archive an AI artifact
Moves the artifact to `archived`, which hides it from the default listing and blocks further edits, and returns the updated artifact. Requires a workspace member with the `ai:write` permission; archiving an already-archived artifact is a no-op, and an unknown artifact is reported as not found. Send an `Idempotency-Key` header to make retries safe; a replay within the window returns the original response.