SnozeDevelopers
API referenceAi

Revoke a standing approval for an operation

Deletes the standing "always allow" policy for one operation so the agent asks about it again, and returns the policies that remain. Requires a workspace member with the `ai:write` permission, because starting to ask again is a workspace setting rather than a chat action. Naturally idempotent: revoking an operation that has no standing policy leaves the list unchanged.

DELETE
/v1/workspaces/{workspaceId}/ai/approval-policies/{operation}
AuthorizationBearer <token>

Workspace API key created in Workspace settings → API keys. Scopes on the key bound what it can read and write.

In: header

Path Parameters

workspaceId*string
operation*string

Response Body

application/json

application/json

application/json

curl -X DELETE "https://example.com/v1/workspaces/string/ai/approval-policies/string"
{  "data": [    "string"  ]}