Update Data Region
/v1/settings/data-regionOverview
Requires a dashboard session with write access to the workspace. With mode only, every request from the workspace routes only to endpoints documented as processing in the region, and a request no such endpoint can serve is refused with 400 data_region_unavailable. With mode prefer, those endpoints are tried first. A request's provider.data_region can narrow the region but never widen it. Send region null to clear it.
Request Body
workspace_idstringRequiredregionstring | nullRequiredus, eu or a documented country code; null clears it.
modestringValues: "only""prefer"
Default: "only"
Responses
200The saved data region.
regionstring | nullRequiredThe workspace's region, or null for any region.
modestringRequiredonly routes every request to endpoints documented in the region; prefer tries them first.
Values: "only""prefer"
regionsstring[]RequiredThe regions that can be required.
Show nested fields
string
400Request validation failed.
errorobjectRequiredShow nested fields
codestringRequiredmessagestringRequiredparamstring | nullrequest_idstring | nullmetadataobjectTyped detail for some refusals. budget_exceeded (402): limit (key_budget or workspace_budget) and budget with scope, period, limit, usage and resets_at. key_limit_exceeded (402): limit key_spend_limit. access_denied (403): policy (workspace or key), rule (models, providers or products), product, provider and model.
401Authentication is missing or invalid.
errorobjectRequiredShow nested fields
codestringRequiredmessagestringRequiredparamstring | nullrequest_idstring | nullmetadataobjectTyped detail for some refusals. budget_exceeded (402): limit (key_budget or workspace_budget) and budget with scope, period, limit, usage and resets_at. key_limit_exceeded (402): limit key_spend_limit. access_denied (403): policy (workspace or key), rule (models, providers or products), product, provider and model.
403Authenticated principal lacks permission.
errorobjectRequiredShow nested fields
codestringRequiredmessagestringRequiredparamstring | nullrequest_idstring | nullmetadataobjectTyped detail for some refusals. budget_exceeded (402): limit (key_budget or workspace_budget) and budget with scope, period, limit, usage and resets_at. key_limit_exceeded (402): limit key_spend_limit. access_denied (403): policy (workspace or key), rule (models, providers or products), product, provider and model.