Moving a Content Item to a new Workspace using the API
I am looking for a way to be able to move Content Hub Items from one workspace to another using the API. Does anyone know if this is yet possible and/or how?
I do not see anything in the documentation that definitively answers that for me.
Environment
Xperience by Kentico version: 30.3.1
.NET version: 8
Execution environment: Private cloud (Azure App Service)
Link to relevant Xperience by Kentico documentation
Answers
I don't know of any supported API dedicated to moving content items between workspaces.
However!
You can use CMS.ContentEngine.ContentFolderManager.MoveItems
which allows you to move content items from one Content Hub content folder to another. Since content folders are tied to workspaces, if you have a folder in a destination workspace you can move items from various workspaces to that destination workspace.
This API is documented in our API Examples.
To answer this question, you have to login first.