Organization
PATCH
/workspaces/{id}

Updates any subset of a workspace's name, avatar (empty string clears it) and seatAllocation. Lowering the allocation below the workspace's connected senders, or over-allocating the organization pool, is rejected with 400.

Authorization

bearerAuth
AuthorizationBearer <token>

An API key created under Settings → API & Webhooks.

In: header

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Any subset of these fields.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X PATCH "https://example.com/workspaces/string" \  -H "Content-Type: application/json" \  -d '{    "name": "Acme Inc.",    "seatAllocation": 3  }'
{  "data": {    "id": "string",    "name": "string",    "avatar": "string",    "seatAllocation": 0,    "sendersUsed": 0,    "ownerId": "string",    "members": [      {        "id": "string",        "email": "string",        "username": "string",        "role": "owner"      }    ],    "orgMembers": [      {        "id": "string",        "email": "string",        "username": "string"      }    ],    "invites": [      {        "identifier": "string",        "role": "admin",        "createdAt": "2019-08-24T14:15:22Z"      }    ]  }}