mirror of
https://github.com/elastic/kibana.git
synced 2025-06-28 19:13:14 -04:00
## Summary Managing large number of saved objects can be cumbersome. This api endpoint allows the management of references without clicking through a lot of different UIs. For example - This swaps all data view id `abcd-efg` references to `xyz-123` ``` POST /api/data_views/swap_references { "from_id" : "abcd-efg", "to_id" : "xyz-123", "preview" : false, // optional, necessary to save changes "delete" : true // optional, removes data view which is no longer referenced } returns { preview: false, result: [{ id: "123", type: "visualization" }], deleteSuccess: true } ``` Additional params - ``` from_type: string - specify the saved object type. Default is `index-pattern` for data view for_id: string | string[] - limit the affected saved objects to one or more by id for_type: string - limit the affected saved objects by type ``` Closes https://github.com/elastic/kibana/issues/153806 |
||
---|---|---|
.. | ||
data_views_crud | ||
default_index_pattern | ||
deprecations | ||
es_errors | ||
fields_api | ||
fields_for_wildcard_route | ||
has_user_index_pattern | ||
integration | ||
runtime_fields_crud | ||
scripted_fields_crud | ||
swap_references | ||
constants.ts | ||
index.ts |