SnozeDevelopers
API referenceOauth client workspace preferences

Set the caller's workspace choice for an OAuth client

Records which workspace an OAuth client should use for the caller, replacing any previous choice for that client. Naturally idempotent: the row is upserted per caller and client. The caller must be a member of the target workspace, otherwise the request is denied. Send an `Idempotency-Key` header to make retries safe; a replay within the window returns the original response.

PUT
/v1/me/oauth-client-workspace-preferences
AuthorizationBearer <token>

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

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X PUT "https://example.com/v1/me/oauth-client-workspace-preferences" \  -H "Content-Type: application/json" \  -d '{    "oauthClientId": "string",    "workspaceId": "string"  }'
{  "data": {    "oauthClientId": "string",    "workspaceId": "string"  }}