Skip to content
LogoLogo

Update the Workspace AI access policy

Update the Workspace AI access policy

PUT/api/v1/workspaces/{workspace_id}/ai-access-policy

Enables or disables external AI access for the current Workspace. Disabling takes effect for existing MCP grants on their next request without revoking those grants in another Workspace.

Path Parameters

workspace_idRequired
string <uuid>
Example0198ac5e-f9b7-7000-8000-000000000001

Header Parameters

X-CSRF-TokenRequired
string·min 43·max 43

Session-bound CSRF token. It must exactly match the __Host-assign_csrf cookie sent with the request.

If-MatchRequired
string

Entity tag containing the last policy revision; "0" creates the first persisted policy.

Request Body

application/json
enabledRequired
boolean

Responses