How to use the _copy_saved_objects

This is totally not working - we are getting 404 errors -

POST kbn:/s/source_space/api/spaces/_copy_saved_objects
{
"createNewCopies": true,
"includeReferences": false,
"objects": [
{
"Title": " Devices by Component with HVA %",
"id": "3dea3af9-b76d-48a2-83f5-2015fb2cd58c",
"type": "lens"
}
],
"overwrite": true,
"spaces": [
"destination_test"
]
}

Hi @lcarr,

Which version of Elasticsearch/ Kibana are you using? Looking at the response codes documentation for 8.13 it looks like the objects cannot be found:

Indicates that the request failed because one or more of the objects specified could not be found. A list of the unresolved objects are included in the 404 response attributes.

Do you see any list of objects in the response? That will help you figure out which objects cannot be found.

Hope that helps!