Preview a saved object reference swap
Preview the impact of swapping saved object references from one data view identifier to another.
Body Required
-
Deletes referenced saved object if all references are removed.
-
Limit the affected saved objects by type.
-
The saved object reference to change.
-
Specify the type of the saved object reference to alter. The default value is
index-pattern
for data views. -
New saved object reference value to replace the old value.
POST /api/data_views/swap_references/_preview
curl \ --request POST 'https://<KIBANA_URL>/api/data_views/swap_references/_preview' \ --header "Authorization: $API_KEY" \ --header "Content-Type: application/json" \ --header "kbn-xsrf: string" \ --data '{"toId":"xyz-123","fromId":"abcd-efg"}'
Request example
{ "toId": "xyz-123", "fromId": "abcd-efg" }