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.
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"
]
}
}