# Create a saved object **POST /api/saved_objects/{type}** **Spaces method and path for this operation:**
post /s/{space_id}/api/saved_objects/{type}
Refer to [Spaces](https://www.elastic.co/docs/deploy-manage/manage-spaces) for more information. 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`). ## Servers - https://localhost:5601: https://localhost:5601 () ## Authentication methods - Api key auth - Basic auth ## Parameters ### Headers - **kbn-xsrf** (string) A required header to protect against CSRF attacks ### Path parameters - **type** (string) The saved object type. ### Query parameters - **overwrite** (boolean) Overwrite an existing saved object. ### Body: application/json (object) - **attributes** (object) - **coreMigrationVersion** (string) - **initialNamespaces** (array[string]) - **migrationVersion** (object) - **references** (array[object]) - **typeMigrationVersion** (string) ## Responses ### 200 A successful create response. ### 409 A conflict error. [Powered by Bump.sh](https://bump.sh)