Update Workspace
api/admin/workspaces/update
Nearest release: v2.1.245, published an hour after this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
api/admin/workspaces/update Changed · +18 / -21 lines
# Update Workspace ## Path parameters ## Body parameters ## Returns ## Example ### Response (200) ## Update Workspace ### Path Parameters ### Body Parameters ### Returns ### Example #### Response
---- -title: Update Workspace -url: https://platform.claude.com/docs/en/api/admin/workspaces/update ---- +# Update Workspace -## Update Workspace +**POST** `/v1/organizations/workspaces/{workspace_id}` -**post** `/v1/organizations/workspaces/{workspace_id}` - Update Workspace -### Path Parameters +## Path parameters - `workspace_id: string` -### Body Parameters +## Body parameters -- `data_residency: optional object { allowed_inference_geos, default_inference_geo } or null` +- `data_residency: optional object or null` Data residency configuration for the workspace.
- `"unrestricted"` - - `"unrestricted"` - - `default_inference_geo: optional "global" or "us" or null` Default inference geo applied when requests omit the parameter. Must be a member of allowed_inference_geos unless allowed_inference_geos is `"unrestricted"`.
Name of the Workspace. + maxLength: 40, minLength: 1 + - `tags: optional map[string] or null` User-defined tags as string key-value pairs. Keys may not begin with `anthropic`. -### Returns +## Returns -- `Workspace object { id, archived_at, compartment_id, 7 more }` +- `Workspace object` - `id: string`
RFC 3339 datetime string indicating when the Workspace was archived, or `null` if the Workspace is not archived. + format: date-time + - `compartment_id: string` Identifier for this Workspace's encryption compartment. When you configure a
RFC 3339 datetime string indicating when the Workspace was created. - - `data_residency: object { allowed_inference_geos, default_inference_geo, workspace_geo }` + format: date-time + - `data_residency: object` + Data residency configuration. - `allowed_inference_geos: array of string or "unrestricted"`
- `"unrestricted"` - - `"unrestricted"` - - `default_inference_geo: string` Default inference geo applied when requests omit the parameter.
For Workspaces, this is always `"workspace"`. - - `"workspace"` + default: workspace -### Example +## Example -```http +```bash curl https://api.anthropic.com/v1/organizations/workspaces/$WORKSPACE_ID \ -H 'Content-Type: application/json' \ -H 'anthropic-version: 2023-06-01' \
}' ``` -#### Response +### Response (200) ```json {