Create Kibana saved objects API documentation error

Hi,

It looks like there is a bug in the documentation for Create saved objects API.
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
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
'

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

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