Repository Public
1---2title: Update Workspace3url: https://platform.claude.com/docs/en/api/beta/organization/workspaces/update4---56# Update Workspace78**POST** `/v1/organizations/workspaces/{workspace_id}`910Update Workspace1112## Path parameters1314- `workspace_id: string`1516## Body parameters1718- `data_residency: optional BetaDataResidencyUpdateConfig or null`1920 Data residency configuration for the workspace.2122 - `allowed_inference_geos: optional array of BetaAllowedInferenceGeo or "unrestricted" or null`2324 Permitted inference geo values. Use 'unrestricted' to allow all geos, or a list of specific geos.2526 - `Geos = array of BetaAllowedInferenceGeo`2728 - `"global"`2930 - `"us"`3132 - `Unrestricted = "unrestricted"`3334 - `default_inference_geo: optional "global" or "us" or null`3536 Default inference geo applied when requests omit the parameter. Must be a member of `allowed_inference_geos` unless `allowed_inference_geos` is `"unrestricted"`.3738 - `"global"`3940 - `"us"`4142- `display_color: optional string`4344 Hex color code representing the Workspace in the Anthropic Console.4546 maxLength: 7, pattern: ^#[0-9A-Fa-f]{6}$4748- `external_key_id: optional string`4950 ID of the customer-managed encryption key (CMEK) configuration to use for this51 Workspace. Setting this field requires CMEK to be enabled for your52 organization. When set, data stored for this Workspace is encrypted with the53 referenced key. Create key configurations with the External Keys API. On54 Claude Platform on AWS the value is the AWS KMS key ARN, and the key must be a55 single-Region key in the same AWS account and Region as the Workspace. On that56 platform the key is validated against this Workspace when it is attached, so a57 key-policy problem is reported as an error on this request. This field is write-once:58 once a key is attached to a Workspace it cannot be detached or replaced. To59 rotate key material, rotate the underlying key on your cloud KMS; the60 `external_key_id` stays the same.6162- `name: optional string`6364 Name of the Workspace.6566 maxLength: 40, minLength: 16768- `tags: optional map[string] or null`6970 User-defined tags as string key-value pairs. Keys may not begin with `anthropic`.7172## Returns7374- `BetaWorkspace object`7576 - `type: "workspace"`7778 Object type.7980 For Workspaces, this is always `"workspace"`.8182 default: workspace8384 - `id: string`8586 ID of the Workspace.8788 - `archived_at: string or null`8990 RFC 3339 datetime string indicating when the Workspace was archived, or `null` if the Workspace is not archived.9192 format: date-time9394 - `compartment_id: string`9596 Identifier for this Workspace's encryption compartment. When you configure a97 customer-managed encryption key (CMEK) on AWS, reference this value in your98 KMS key-policy condition so the key is scoped to this compartment. On GCP and99 Azure, Anthropic enforces the compartment binding automatically; you do not100 need to reference this value in your key configuration. See the CMEK101 integration guide for the required key configuration; unless your organization102 is on Claude Platform on AWS, it includes a separate value used during key103 validation. On Claude Platform on AWS there is no separate validation value:104 the key is validated against this Workspace's own value when it is attached, so105 if your key policy uses the compartment condition, add this value to it before106 attaching the key.107108 - `created_at: string`109110 RFC 3339 datetime string indicating when the Workspace was created.111112 format: date-time113114 - `data_residency: BetaDataResidency`115116 Data residency configuration.117118 - `allowed_inference_geos: array of BetaAllowedInferenceGeo or "unrestricted"`119120 Permitted inference geo values. 'unrestricted' means all geos are allowed.121122 - `Geos = array of BetaAllowedInferenceGeo`123124 - `"global"`125126 - `"us"`127128 - `Unrestricted = "unrestricted"`129130 - `default_inference_geo: "global" or "us"`131132 Default inference geo applied when requests omit the parameter.133134 - `"global"`135136 - `"us"`137138 - `workspace_geo: "us"`139140 Geographic region for workspace data storage. Immutable after creation.141142 - `display_color: string`143144 Hex color code representing the Workspace in the Anthropic Console.145146 - `external_key_id: string or null`147148 ID of the customer-managed encryption key (CMEK) configuration to use for this149 Workspace. Setting this field requires CMEK to be enabled for your150 organization. When set, data stored for this Workspace is encrypted with the151 referenced key. Create key configurations with the External Keys API. On152 Claude Platform on AWS the value is the AWS KMS key ARN, and the key must be a153 single-Region key in the same AWS account and Region as the Workspace. On that154 platform the key is validated against this Workspace when it is attached, so a155 key-policy problem is reported as an error on this request. This field is write-once:156 once a key is attached to a Workspace it cannot be detached or replaced. To157 rotate key material, rotate the underlying key on your cloud KMS; the158 `external_key_id` stays the same.159160 - `name: string`161162 Name of the Workspace.163164 - `tags: map[string]`165166 User-defined tags as string key-value pairs. Keys may not begin with `anthropic`.167168## Example169170```bash171curl https://api.anthropic.com/v1/organizations/workspaces/$WORKSPACE_ID \172 -H 'Content-Type: application/json' \173 -H 'anthropic-version: 2023-06-01' \174 -H "X-Api-Key: $ANTHROPIC_API_KEY" \175 -d '{176 "display_color": "#6C5BB9",177 "external_key_id": "ekey_01SDCCSbTxrXDpWc1phhtcfK",178 "tags": {179 "env": "prod",180 "team": "platform"181 }182 }'183```184185### Response (200)186187```json188{189 "id": "wrkspc_01JwQvzr7rXLA5AGx3HKfFUJ",190 "archived_at": "2024-11-01T23:59:27.427722Z",191 "compartment_id": "f8a7b6c5-4d3e-4f1a-8b9c-0d1e2f3a4b5c",192 "created_at": "2024-10-30T23:58:27.427722Z",193 "data_residency": {194 "allowed_inference_geos": "unrestricted",195 "default_inference_geo": "global",196 "workspace_geo": "us"197 },198 "display_color": "#6C5BB9",199 "external_key_id": "ekey_01SDCCSbTxrXDpWc1phhtcfK",200 "name": "Workspace Name",201 "tags": {202 "env": "prod",203 "team": "platform"204 },205 "type": "workspace"206}207```208