Swap saved object references
https://{kibana_url}
- POST /api/data_views/swap_references
- POST /s/{space_id}/api/data_views/swap_references
Refer to Spaces for more information.
Swap saved object references from one data view to another. Use this endpoint to update dashboards, visualizations, and other saved objects that reference a data view. WARNING: Misuse can break large numbers of saved objects! Use the _preview endpoint to see which saved objects would be affected before making changes.
Request
-
deleteboolean -
Deletes referenced saved object if all references are removed.
-
forIdstring | string -
Limit the affected saved objects to one or more by identifier.
-
forTypestring -
Limit the affected saved objects by type.
-
fromIdstringrequired -
The saved object reference to change.
-
fromTypestring -
Specify the type of the saved object reference to alter. The default value is
index-patternfor data views. -
toIdstringrequired -
New saved object reference value to replace the old value.
Response
Indicates a successful call.
-
deleteStatusobject -
deletePerformedboolean -
remainingRefsinteger