Preview a saved object reference swap
Preview the impact of swapping saved object references from one data view identifier to another.
Body Required
-
delete boolean
Deletes referenced saved object if all references are removed.
forId string | array[string]
Limit the affected saved objects to one or more by identifier.
-
forType string
Limit the affected saved objects by type.
-
The saved object reference to change.
-
fromType string
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 \
-X POST https://localhost:5601/api/data_views/swap_references/_preview \
-H "Content-Type: application/json; Elastic-Api-Version=2023-10-31" \
-H "kbn-xsrf: string"
Request example
{
"toId": "xyz-123",
"fromId": "abcd-efg"
}
Response examples (200)
{
"result": [
{
"id": "string",
"type": "string"
}
]
}