SnozeDevelopers
API referenceConnected Accounts

Set this workspace's connection policy

Requires `integrations:write`. Turning on `blockPersonalAccounts` immediately drops every cached reachability answer for this workspace, so shared surfaces stop resolving through personal credentials on the next read rather than when their cache expires.

PUT
/v1/workspaces/{workspaceId}/connection-policy

Authorization

apiKey
headerAuthorizationBearer <snoze_sk_…>

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

Path Parameters

workspaceId*string

Request Body

application/json
  1. body
blockPersonalAccounts*boolean
requireWorkspaceRunAs*boolean

Response Body

Success

application/json
  1. response
data*
Example Request
curl -X PUT 'https://api.snoze.dev/v1/workspaces/string/connection-policy' \  -H 'Content-Type: application/json' \  -d '{  "blockPersonalAccounts": true,  "requireWorkspaceRunAs": true}'
Example Response
{  "data": {    "blockPersonalAccounts": true,    "requireWorkspaceRunAs": true  }}