---
title: "Create space settings"
method: PUT
path: "/api/fleet/space_settings"
tags: ["Fleet internals"]
---

# Create space settings

`PUT /api/fleet/space_settings`

**Spaces method and path for this operation:**

<div><span class="operation-verb put">put</span>&nbsp;<span class="operation-path">/s/{space_id}/api/fleet/space_settings</span></div>

Refer to [Spaces](https://www.elastic.co/docs/deploy-manage/manage-spaces) for more information.

Create or update Fleet settings for the current Kibana space.<br/><br/>[Required authorization] Route required privileges: fleet-settings-all.

## Headers

- `kbn-xsrf` string, required

## Request body

- object
  - `allowed_namespace_prefixes` string[]

## Response `200`

Successful response

- object
  - `item` object, required
    - `allowed_namespace_prefixes` string[], required
    - `managed_by` string

## Changes

> 92 revisions in range; 5 could not be searched.

- **2026-08-06** `22e8216aed77` — 1 info
  - api tag `Fleet internals` added

[Change history](https://skmtc.dev/elastic/apis/kibana-apis/changes/api/fleet/space_settings/put.md)

---

[API](https://skmtc.dev/elastic/apis/kibana-apis.md) · [All operations](https://skmtc.dev/elastic/apis/kibana-apis/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/elastic/kibana-apis/revisions/d3fa2d005f9b/schema)
