Skip to content

Commit

Permalink
[Docs] Fix curl examples in update data view api docs (#153292)
Browse files Browse the repository at this point in the history
## Summary

Fixes typos in the curl examples in the Update data views API docs.

[Reported by a community
user](https://discuss.elastic.co/t/kibana-data-view-update-api-request-doesnt-work/327435/5).
  • Loading branch information
nickpeihl authored Apr 3, 2023
1 parent 234d48d commit 95d4820
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/api/data-views/update.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Update a title of the `<my-view>` data view:

[source,sh]
--------------------------------------------------
$ curl -X POST api/data_views/data-view/my-view
$ curl -X POST api/data_views/data_view/my-view
{
"data_view": {
"title": "some-other-view-*"
Expand All @@ -75,7 +75,7 @@ Customize the update behavior:

[source,sh]
--------------------------------------------------
$ curl -X POST api/data_views/data-view/my-view
$ curl -X POST api/data_views/data_view/my-view
{
"refresh_fields": true,
"data_view": {
Expand All @@ -90,7 +90,7 @@ All update fields are optional, but you can specify the following fields:

[source,sh]
--------------------------------------------------
$ curl -X POST api/data_views/data-view/my-view
$ curl -X POST api/data_views/data_view/my-view
{
"data_view": {
"title": "...",
Expand Down

0 comments on commit 95d4820

Please sign in to comment.