Create space settings Generally available; added in 9.1.0

PUT /api/fleet/space_settings

Spaces method and path for this operation:

put /s/{space_id}/api/fleet/space_settings

Refer to Spaces for more information.

Create or update Fleet settings for the current Kibana space.

[Required authorization] Route required privileges: fleet-settings-all.

Headers

  • kbn-xsrf string Required

    A required header to protect against CSRF attacks

application/json

Body

  • allowed_namespace_prefixes array[string]

    Not more than 10 elements.

Responses

  • 200 application/json

    Successful response

    Hide response attribute Show response attribute object
    • item object Required

      Additional properties are NOT allowed.

      Hide item attributes Show item attributes object
      • allowed_namespace_prefixes array[string] Required

        Not more than 100 elements.

      • managed_by string
PUT /api/fleet/space_settings
curl \
 --request PUT 'https://localhost:5601/api/fleet/space_settings' \
 --header "Authorization: $API_KEY" \
 --header "Content-Type: application/json" \
 --header "kbn-xsrf: true" \
 --data '"{\n  \"allowed_namespace_prefixes\": [\n    \"team-a\",\n    \"team-b\"\n  ]\n}"'
Request example
Update allowed namespace prefixes for the current Kibana space
{
  "allowed_namespace_prefixes": [
    "team-a",
    "team-b"
  ]
}
Response examples (200)
The updated Fleet settings for the current Kibana space
{
  "item": {
    "allowed_namespace_prefixes": [
      "team-a",
      "team-b"
    ]
  }
}