# Create Kibana saved objects API documentation error

**URL:** https://discuss.elastic.co/t/create-kibana-saved-objects-api-documentation-error/261582
**Category:** Kibana
**Created:** [January 19, 2021, 6:18pm UTC](https://discuss.elastic.co/t/create-kibana-saved-objects-api-documentation-error/261582 "2021-01-19T18:18:59Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![ewolfman](https://avatars.discourse-cdn.com/v4/letter/e/5f8ce5/32.png) [@ewolfman](https://discuss.elastic.co/u/ewolfman)
#### Post date: [January 19, 2021, 6:18pm UTC](https://discuss.elastic.co/t/create-kibana-saved-objects-api-documentation-error/261582/1 "2021-01-19T18:18:59Z")

</div>

Hi,

It looks like there is a bug in the documentation for [Create saved objects API](https://www.elastic.co/guide/en/kibana/current/saved-objects-api-create.html#saved-objects-api-create-example).  
If you click on the "Copy as cURL" the copied example has a couple of issues:

1. Missing closing quatation marks after "my-pattern"
2. Duplicate and misplaced headers
3. Escape character at the end of the code

```auto
curl -X POST "localhost:5601/api/saved_objects/index-pattern/my-pattern -H 'kbn-xsrf: true' -H 'Content-Type: application/json' -d '" -H 'kbn-xsrf: true' -H 'Content-Type: application/json' -d'
{
  "attributes": {
    "title": "my-pattern-*"
  }
}\u0027
'

```

---

<div class="post-metadata">

### Author: ![flash1293](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/flash1293/32/41227_2.png) [@flash1293](https://discuss.elastic.co/u/flash1293)
#### Post date: [January 20, 2021, 9:01am UTC](https://discuss.elastic.co/t/create-kibana-saved-objects-api-documentation-error/261582/2 "2021-01-20T09:01:25Z")

</div>

Hi, thanks for reporting this. I forwarded the issue to our docs team, they will look into it.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [February 17, 2021, 9:01am UTC](https://discuss.elastic.co/t/create-kibana-saved-objects-api-documentation-error/261582/3 "2021-02-17T09:01:32Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
