Update a space
const url = 'https://spaces.work.optidata.cloud/api/spaces/a3051110-3152-412d-a015-6d0228be403e';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"name":"Acme HQ (2nd floor)","description":"Product and design."}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://spaces.work.optidata.cloud/api/spaces/a3051110-3152-412d-a015-6d0228be403e \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "Acme HQ (2nd floor)", "description": "Product and design." }'Changes the space’s name, slug, description or built-in layout. Send only the fields to change. Only the space’s owner or a company super-administrator may update it.
Authorizations
Section titled “Authorizations”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”The space’s uuid or hash.
Request Bodyrequired
Section titled “Request Bodyrequired”object
One of the built-in offices. It is used when your company has no active world of its own.
Examples
{ "name": "Acme HQ (2nd floor)", "description": "Product and design."}Responses
Section titled “ Responses ”The updated space.
object
The space’s identifier in links.
Your company’s id.
The user who created the space; null for the company’s default space.
One of the built-in offices. It is used when your company has no active world of its own.
Examples
{ "id": 2, "uuid": "a3051110-3152-412d-a015-6d0228be403e", "cuid": "7f3c2a10-5b8e-4d21-9c6a-0e4f1b2d3c4a", "owner_uuid": "2d9e8f70-1a3b-4c5d-8e9f-a0b1c2d3e4f5", "name": "Acme HQ (2nd floor)", "slug": "acme-hq", "description": "Product and design.", "map": "office-classic", "hash": "a3051110-31f8-4b91-8026-owt42-e19896afc357", "is_archived": false, "archived_at": null, "created_at": "2026-10-19T14:52:44.000000Z", "updated_at": "2026-10-19T14:52:55.000000Z", "deleted_at": null}No authentication key was sent.
Authentication failures use an error key rather than message.
object
Examples
No bearer token sent
{ "error": "JWT passport exception: Missing bearer token in request"}The caller is not allowed to do this (see “Who may do what”), or the authentication key is not recognised (empty message).
object
Examples
Not the space's owner
{ "message": "You do not have permission to update this space."}Not a builder
{ "message": "You do not have permission to view this map."}Not a super-administrator
{ "message": "You do not have permission to activate this map."}Nothing has this identifier.
object
Examplegenerated
{ "message": "example"}The authentication key is expired or not recognised. Get a fresh one and retry.
Authentication failures use an error key rather than message.
object
Examples
{ "error": "JWT passport expired: Passport expired"}The body failed validation.
object
The first validation message.
Validation messages keyed by field name.
object
Examples
{ "message": "The name field is required.", "errors": { "name": [ "The name field is required." ] }}