Create a saved object
- Base URL
-
https://{kibana_url}
- POST /api/saved_objects/{type}
- POST /s/{space_id}/api/saved_objects/{type}
Create a Kibana saved object with a randomly generated identifier.
https://{kibana_url}
Create a Kibana saved object with a randomly generated identifier.
space_id
string
optional
An identifier for the space. If space_id is not provided in the URL, the default space is used. Refer to Spaces for more information.
attributes
object
required
The data that you want to create. WARNING: When you create saved objects, attributes are not validated, which allows you to pass arbitrary and ill-formed data into the API that can break Kibana. Make sure any data that you send to the API is properly formed.
initialNamespaces
unknown[]
Identifiers for the spaces in which this object is created. If this is provided, the object is created only in the explicitly defined spaces. If this is not provided, the object is created in the current space (default behavior). For shareable object types (registered with namespaceType: 'multiple'), this option can be used to specify one or more spaces, including the "All spaces" identifier (''). For isolated object types (registered with namespaceType: 'single' or namespaceType: 'multiple-isolated'), this option can only be used to specify a single space, and the "All spaces" identifier ('') is not allowed. For global object types (registered with namespaceType: agnostic`), this option cannot be used.
Indicates a successful call.
Response Type: object
Indicates a conflict error.
Response Type: object
https://{kibana_url}