mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
(cherry picked from commit 4aedd6cd20
)
# Conflicts:
# docs/api/data-views/update-fields.asciidoc
# docs/api/data-views/update.asciidoc
This commit is contained in:
parent
028b82c6dd
commit
8064218810
2 changed files with 6 additions and 6 deletions
|
@ -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": {
|
||||
|
|
|
@ -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": "...",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue