Workspaces

Update Current Workspace

Update name, timezone, country and/or default language (admin+). Omitted fields are unchanged.

API key access

Needs the admin scope with an API key (ro_pat_...). A signed-in session uses the caller's role.
PATCH/api/v1/workspaces/current
AuthorizationBearer <token>

Access token from /api/v1/auth/login, or an API key (ro_pat_..., RO-176) from /api/v1/workspaces/current/api-keys: the key implies its workspace and needs the route's scope. MCP connectors (/api/v1/mcp only) may use an OAuth access token (ro_oat_..., RO-284).

In: header

Header Parameters

X-Workspace-Id?string | null

Id of the workspace to act on (must be a member).

name?string | null
Lengthlength <= 200
timezone?string | null

IANA time zone, e.g. Europe/Berlin.

country?string | null

ISO 3166-1 alpha-2 code; send null to clear it.

default_language?string | null

Language of a call whose lead has none (RO-253): a code such as en or hi-IN, or a common language name; send null to clear it.

Lengthlength <= 35
slug?string | null

RO-293: the workspace's URL-safe handle (lowercase letters and digits in hyphen-separated groups, 3 to 63 characters, not reserved); 409 if another workspace has it.

Lengthlength <= 63

Response Body

curl -X PATCH "http://localhost:8000/api/v1/workspaces/current" \  -H "X-Workspace-Id: string" \  -H "Content-Type: application/json" \  -d '{}'
{
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "name": "string",
  "slug": "string",
  "plan": "free",
  "timezone": "string",
  "country": "string",
  "default_language": "string",
  "suspended_at": "2019-08-24T14:15:22Z",
  "suspended_reason": "string",
  "role": "owner"
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}