Is there any way to move a Confluence page from one space to another?
I tried the following two approaches:
Call the Update content REST endpoint and set an ancestor from a different space. Also tried with setting a space key explicitly - as with the Create content endpoint.
This resulted in an error stating that it is not possible to update the content with an ancestor from a different space.
Call the not publicly documented move endpoint, which is called when the user executes a page move via the Confluence UI. This approach is described here.
It works, but only with basic auth. I tried this first with JWT authentication and secondly with OAuth, neither did work. JWT resulted in a 403 error “Request not in an authorized API scope”. OAuth resulted in the “Please log in page”.
As neither approach 1. nor approach 2. did work - and also approach 2. is undocumented -, I am looking for a way to move a page from one space to another. Has anyone done this?
One approach coming to my mind would be to let the admin provide user credentials and use the 2. approach. But this also seems more like a workaround and does require additional action by the user.