---
title: "Update a space"
method: PUT
path: "/api/spaces/space/{id}"
tags: ["spaces"]
---

# Update a space

`PUT /api/spaces/space/{id}`

Update an existing Kibana space.

## Path parameters

- `id` string, required

## Headers

- `kbn-xsrf` string, required

## Request body

- object
  - `_reserved` boolean
  - `color` string — The hexadecimal color code used in the space avatar. By default, the color is automatically generated from the space name.
  - `description` string — A description for the space.
  - `disabledFeatures` string[]
  - `id` string, required — The space ID that is part of the Kibana URL when inside the space. Space IDs are limited to lowercase alphanumeric, underscore, and hyphen characters (a-z, 0-9, _, and -). You are cannot change the ID with the update operation.
  - `imageUrl` string — The data-URL encoded image to display in the space avatar. If specified, initials will not be displayed and the color will be visible as the background color for transparent images. For best results, your image should be 64x64. Images will not be optimized by this API call, so care should be taken when using custom images.
  - `initials` string — One or two characters that are shown in the space avatar. By default, the initials are automatically generated from the space name.
  - `name` string, required — The display name for the space.
  - `projectRouting` string — Cross-project search default routing configuration for this space. Controls whether searches are scoped to a single project or span multiple projects in serverless environments.
  - `solution` 'security' | 'oblt' | 'es' | 'classic'

## Response `200`

Indicates a successful call.

- object
  - `_reserved` boolean
  - `color` string — The hexadecimal color code used in the space avatar. By default, the color is automatically generated from the space name.
  - `description` string — A description for the space.
  - `disabledFeatures` string[]
  - `id` string, required — The space ID that is part of the Kibana URL when inside the space. Space IDs are limited to lowercase alphanumeric, underscore, and hyphen characters (a-z, 0-9, _, and -). You are cannot change the ID with the update operation.
  - `imageUrl` string — The data-URL encoded image to display in the space avatar. If specified, initials will not be displayed and the color will be visible as the background color for transparent images. For best results, your image should be 64x64. Images will not be optimized by this API call, so care should be taken when using custom images.
  - `initials` string — One or two characters that are shown in the space avatar. By default, the initials are automatically generated from the space name.
  - `name` string, required — The display name for the space.
  - `projectRouting` string — Cross-project search default routing configuration for this space. Controls whether searches are scoped to a single project or span multiple projects in serverless environments.
  - `solution` 'security' | 'oblt' | 'es' | 'classic'

---

[API](https://skmtc.net/elastic/apis/kibana-apis.md) · [All operations](https://skmtc.net/elastic/apis/kibana-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/elastic/kibana-apis/versions/531c9e2a7d23/schema)
