Skip to content

Commit 888ce70

Browse files
fix paths in sample code in docs (elastic#130215) (elastic#130267)
(cherry picked from commit bde1ba5) Co-authored-by: Matthew Kime <[email protected]>
1 parent acab727 commit 888ce70

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

docs/api/index-patterns/update-fields.asciidoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Set popularity `count` for field `foo`:
4444

4545
[source,sh]
4646
--------------------------------------------------
47-
$ curl -X POST api/saved_objects/index-pattern/my-pattern/fields
47+
$ curl -X POST api/index_patterns/index-pattern/my-pattern/fields
4848
{
4949
"fields": {
5050
"foo": {
@@ -59,7 +59,7 @@ Update multiple metadata fields in one request:
5959

6060
[source,sh]
6161
--------------------------------------------------
62-
$ curl -X POST api/saved_objects/index-pattern/my-pattern/fields
62+
$ curl -X POST api/index_patterns/index-pattern/my-pattern/fields
6363
{
6464
"fields": {
6565
"foo": {
@@ -77,7 +77,7 @@ $ curl -X POST api/saved_objects/index-pattern/my-pattern/fields
7777
Use `null` value to delete metadata:
7878
[source,sh]
7979
--------------------------------------------------
80-
$ curl -X POST api/saved_objects/index-pattern/my-pattern/fields
80+
$ curl -X POST api/index_patterns/index-pattern/my-pattern/fields
8181
{
8282
"fields": {
8383
"foo": {

docs/api/index-patterns/update.asciidoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Update a title of the `<my-pattern>` index pattern:
5656

5757
[source,sh]
5858
--------------------------------------------------
59-
$ curl -X POST api/saved_objects/index-pattern/my-pattern
59+
$ curl -X POST api/index_patterns/index-pattern/my-pattern
6060
{
6161
"index_pattern": {
6262
"title": "some-other-pattern-*"
@@ -69,7 +69,7 @@ Customize the update behavior:
6969

7070
[source,sh]
7171
--------------------------------------------------
72-
$ curl -X POST api/saved_objects/index-pattern/my-pattern
72+
$ curl -X POST api/index_patterns/index-pattern/my-pattern
7373
{
7474
"refresh_fields": true,
7575
"index_pattern": {
@@ -84,7 +84,7 @@ All update fields are optional, but you can specify the following fields:
8484

8585
[source,sh]
8686
--------------------------------------------------
87-
$ curl -X POST api/saved_objects/index-pattern/my-pattern
87+
$ curl -X POST api/index_patterns/index-pattern/my-pattern
8888
{
8989
"index_pattern": {
9090
"title": "...",

docs/api/saved-objects/create.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ any data that you send to the API is properly formed.
6565

6666
[source,sh]
6767
--------------------------------------------------
68-
$ curl -X POST api/saved_objects/index-pattern/my-pattern -H 'kbn-xsrf: true' -H 'Content-Type: application/json' -d '
68+
$ curl -X POST api/index_patterns/index-pattern/my-pattern -H 'kbn-xsrf: true' -H 'Content-Type: application/json' -d '
6969
{
7070
"attributes": {
7171
"title": "my-pattern-*"

docs/api/saved-objects/delete.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,6 @@ Delete an index pattern object with the `my-pattern` ID:
4949

5050
[source,sh]
5151
--------------------------------------------------
52-
$ curl -X DELETE api/saved_objects/index-pattern/my-pattern
52+
$ curl -X DELETE api/index_patterns/index-pattern/my-pattern
5353
--------------------------------------------------
5454
// KIBANA

docs/api/saved-objects/get.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Retrieve the index pattern object with the `my-pattern` ID:
4141

4242
[source,sh]
4343
--------------------------------------------------
44-
$ curl -X GET api/saved_objects/index-pattern/my-pattern
44+
$ curl -X GET api/index_patterns/index-pattern/my-pattern
4545
--------------------------------------------------
4646
// KIBANA
4747

docs/api/saved-objects/update.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Update an existing index pattern object,`my-pattern`, with a different title:
5151

5252
[source,sh]
5353
--------------------------------------------------
54-
$ curl -X PUT api/saved_objects/index-pattern/my-pattern
54+
$ curl -X PUT api/index_patterns/index-pattern/my-pattern
5555
{
5656
"attributes": {
5757
"title": "some-other-pattern-*"

0 commit comments

Comments
 (0)