Create a saved object

Base URL
https://{kibana_url}
Auth Deprecated
Warning

This API is deprecated. This is a legacy Saved Objects API and may be removed in a future version of Kibana.

Creates a Kibana saved object; if an ID is provided it is used, otherwise Kibana generates one.

For transferring or backing up saved objects, prefer the import and export APIs (POST /api/saved_objects/_import and POST /api/saved_objects/_export).

Path parameters

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.

type string required

The saved object type.

id string optional

The saved object identifier.

Leave it out to use /api/saved_objects/{type}.

Query parameters

overwrite boolean · default: false

Overwrite an existing saved object.

Header parameters

kbn-xsrf string required

A required header to protect against CSRF attacks

Request body

attributes map string to object required
coreMigrationVersion string
initialNamespaces string[] · min items: 1 · max items: 100
migrationVersion map string to string
typeMigrationVersion string

Responses

200

A successful create response.

application/json
409

A conflict error.

application/json
Base URL
https://{kibana_url}