Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. See our Privacy Policy and
Terms.
openapi: 3.2.0
info:
contact:
name: Kibana Team
description: The Kibana REST APIs enable you to manage resources such as connectors, data views, and saved objects.
title: Kibana Fleet API
version: ''
x-doc-license:
name: Attribution-NonCommercial-NoDerivatives 4.0 International
url: https://creativecommons.org/licenses/by-nc-nd/4.0/
x-feedbackLink:
label: Feedback
url: https://github.com/elastic/docs-content/issues/new?assignees=&labels=feedback%2Ccommunity&projects=&template=api-feedback.yaml&title=%5BFeedback%5D%3A+
servers:
- url: https://{kibana_url}
variables:
kibana_url:
default: localhost:5601
security:
- apiKeyAuth: []
- basicAuth: []
tags:
- name: Fleet
paths:
/api/fleet/space_settings:
get:
description: '**Spaces method and path for this operation:**
get /s/{space_id}/api/fleet/space_settings
Refer to Spaces for more information.
Get the Fleet settings for the current Kibana space.'
operationId: get-fleet-space-settings
parameters: []
responses:
'200':
content:
application/json:
examples:
getSpaceSettingsExample:
description: The Fleet settings for the current Kibana space
value:
item:
allowed_namespace_prefixes:
- team-a
- team-b
schema:
additionalProperties: false
type: object
properties:
item:
additionalProperties: false
type: object
properties:
allowed_namespace_prefixes:
items:
type: string
maxItems: 100
type: array
managed_by:
type: string
required:
- allowed_namespace_prefixes
required:
- item
description: Successful response
summary: Get space settings
tags:
- Fleet
x-state: Generally available; added in 9.1.0
x-metaTags:
- content: Kibana
name: product_name
put:
description: '**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.'
operationId: put-fleet-space-settings
parameters:
- description: A required header to protect against CSRF attacks
in: header
name: kbn-xsrf
required: true
schema:
example: 'true'
type: string
requestBody:
content:
application/json:
examples:
putSpaceSettingsRequestExample:
description: Update allowed namespace prefixes for the current Kibana space
value:
allowed_namespace_prefixes:
- team-a
- team-b
schema:
additionalProperties: false
type: object
properties:
allowed_namespace_prefixes:
items:
type: string
maxItems: 10
type: array
responses:
'200':
content:
application/json:
examples:
putSpaceSettingsExample:
description: The updated Fleet settings for the current Kibana space
value:
item:
allowed_namespace_prefixes:
- team-a
- team-b
schema:
additionalProperties: false
type: object
properties:
item:
additionalProperties: false
type: object
properties:
allowed_namespace_prefixes:
items:
type: string
maxItems: 100
type: array
managed_by:
type: string
required:
- allowed_namespace_prefixes
required:
- item
description: Successful response
summary: Create space settings
tags:
- Fleet
x-state: Generally available; added in 9.1.0
x-metaTags:
- content: Kibana
name: product_name
components:
securitySchemes:
apiKeyAuth:
description: 'These APIs use key-based authentication. You must create an API key and use the encoded value in the request header. For example: `Authorization: ApiKey base64AccessApiKey`
'
in: header
name: Authorization
type: apiKey
basicAuth:
scheme: basic
type: http
x-topics:
- title: Kibana spaces
content: "Spaces enable you to organize your dashboards and other saved objects into meaningful categories.\nYou can use the default space or create your own spaces.\n\nTo run APIs in non-default spaces, you must add `s/{space_id}/` to the path.\nFor example:\n\n```bash\ncurl -X GET \"http://${KIBANA_URL}/s/marketing/api/data_views\" \\\n -H \"Authorization: ApiKey ${API_KEY}\"\n```\n\nIf you use the Kibana console to send API requests, it automatically adds the appropriate space identifier.\n\nTo learn more, check out [Spaces](https://www.elastic.co/docs/deploy-manage/manage-spaces).\n"