fix paths in sample code in docs (#130278) (#130298)

(cherry picked from commit 4aedd6cd20)

# Conflicts:
#	docs/api/data-views/update-fields.asciidoc
#	docs/api/data-views/update.asciidoc
This commit is contained in:
Matthew Kime 2022-04-14 12:08:36 -05:00 committed by GitHub
parent 028b82c6dd
commit 8064218810
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View file

@ -44,7 +44,7 @@ Set popularity `count` for field `foo`:
[source,sh]
--------------------------------------------------
$ curl -X POST api/saved_objects/index-pattern/my-pattern/fields
$ curl -X POST api/index-patterns/index-pattern/my-pattern/fields
{
"fields": {
"foo": {
@ -59,7 +59,7 @@ Update multiple metadata fields in one request:
[source,sh]
--------------------------------------------------
$ curl -X POST api/saved_objects/index-pattern/my-pattern/fields
$ curl -X POST api/index-patterns/index-pattern/my-pattern/fields
{
"fields": {
"foo": {
@ -77,7 +77,7 @@ $ curl -X POST api/saved_objects/index-pattern/my-pattern/fields
Use `null` value to delete metadata:
[source,sh]
--------------------------------------------------
$ curl -X POST api/saved_objects/index-pattern/my-pattern/fields
$ curl -X POST api/index-patterns/index-pattern/my-pattern/fields
{
"fields": {
"foo": {

View file

@ -56,7 +56,7 @@ Update a title of the `<my-pattern>` data view:
[source,sh]
--------------------------------------------------
$ curl -X POST api/saved_objects/index-pattern/my-pattern
$ curl -X POST api/index-patterns/index-pattern/my-pattern
{
"index_pattern": {
"title": "some-other-pattern-*"
@ -69,7 +69,7 @@ Customize the update behavior:
[source,sh]
--------------------------------------------------
$ curl -X POST api/saved_objects/index-pattern/my-pattern
$ curl -X POST api/index-patterns/index-pattern/my-pattern
{
"refresh_fields": true,
"index_pattern": {
@ -84,7 +84,7 @@ All update fields are optional, but you can specify the following fields:
[source,sh]
--------------------------------------------------
$ curl -X POST api/saved_objects/index-pattern/my-pattern
$ curl -X POST api/index-patterns/index-pattern/my-pattern
{
"index_pattern": {
"title": "...",