fix paths in sample code in docs (#130215)

This commit is contained in:
Matthew Kime 2022-04-14 09:38:27 -05:00 committed by GitHub
parent 0a800c4b8a
commit bde1ba53dc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 10 additions and 10 deletions

View file

@ -46,7 +46,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": {
@ -61,7 +61,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": {
@ -79,7 +79,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

@ -58,7 +58,7 @@ Update a title of the `<my-pattern>` index pattern:
[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-*"
@ -71,7 +71,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": {
@ -86,7 +86,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": "...",

View file

@ -72,7 +72,7 @@ used to specify a single space, and the "All spaces" identifier (`'*'`) is not a
[source,sh]
--------------------------------------------------
$ curl -X POST api/saved_objects/index-pattern/my-pattern -H 'kbn-xsrf: true' -H 'Content-Type: application/json' -d '
$ curl -X POST api/index_patterns/index-pattern/my-pattern -H 'kbn-xsrf: true' -H 'Content-Type: application/json' -d '
{
"attributes": {
"title": "my-pattern-*"

View file

@ -47,6 +47,6 @@ Delete {a-data-source} object with the `my-pattern` ID:
[source,sh]
--------------------------------------------------
$ curl -X DELETE api/saved_objects/index-pattern/my-pattern
$ curl -X DELETE api/index_patterns/index-pattern/my-pattern
--------------------------------------------------
// KIBANA

View file

@ -39,7 +39,7 @@ Retrieve the {data-source} object with the `my-pattern` ID:
[source,sh]
--------------------------------------------------
$ curl -X GET api/saved_objects/index-pattern/my-pattern
$ curl -X GET api/index_patterns/index-pattern/my-pattern
--------------------------------------------------
// KIBANA

View file

@ -58,7 +58,7 @@ Update an existing {data-source} object,`my-pattern`, with a different title:
[source,sh]
--------------------------------------------------
$ curl -X PUT api/saved_objects/index-pattern/my-pattern
$ curl -X PUT api/index_patterns/index-pattern/my-pattern
{
"attributes": {
"title": "some-other-pattern-*"