Records (or replaces) one workspace's residency reference.
PUT
/v1/m/models/workspace-residency
const url = 'https://example.com/v1/m/models/workspace-residency';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"allowed_geos":["example"],"as_of":"example","default_geo":"example","id":"example","workspace_geo":"example","workspace_ref":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://example.com/v1/m/models/workspace-residency \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "allowed_geos": [ "example" ], "as_of": "example", "default_geo": "example", "id": "example", "workspace_geo": "example", "workspace_ref": "example" }'Records (or replaces) one workspace’s residency reference. It is an upsert keyed by workspace_ref: a catalog re-sync replaces the geos in place, never duplicates the row.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Header Parameters
Section titled “Header Parameters ” X-Olivares-Tenant
string format: uuid
Target tenant id; required when the principal can act in more than one tenant.
Request Body required
Section titled “Request Body required ” Media type application/json
object
allowed_geos
Array<string>
as_of
string
default_geo
string
id
string
workspace_geo
string
workspace_ref
required
string
Example generated
{ "allowed_geos": [ "example" ], "as_of": "example", "default_geo": "example", "id": "example", "workspace_geo": "example", "workspace_ref": "example"}Responses
Section titled “ Responses ”OK
Media type application/json
object
Example generated
{}Bad request
Media type application/json
object
Example generated
{}Unauthenticated
Media type application/json
object
Example generated
{}Forbidden
Media type application/json
object
Example generated
{}Not found
Media type application/json
object
Example generated
{}Conflict / setup required
Media type application/json
object
Example generated
{}Rate limited
Media type application/json
object
Example generated
{}