mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
fix paths in sample code in docs (#130215)
This commit is contained in:
parent
0a800c4b8a
commit
bde1ba53dc
6 changed files with 10 additions and 10 deletions
|
@ -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": {
|
||||
|
|
|
@ -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": "...",
|
||||
|
|
|
@ -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-*"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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-*"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue