The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Copy page to new space with REST API

Francis Vila
February 24, 2020

I've successfully created a new space with confluence APIs.

Now I want to copy an existing page to that new space.

I followed the example given in https://community.atlassian.com/t5/Answers-Developer-Questions/Move-Page-Confluence-Rest-API/qaq-p/503204

curl -u uuuuuuu:pppppppppp -GET "https://my.confluence.domain/confluence/rest/api/content/movepage.action?pageId=111111111111&spaceKey=xxxxxxxxxx&position=topLevel" -"x-atlassian-token: no-check" 

I also tried replacing movepage with copy, copypage. Also without the atlassian-token: no-check. I get no error messages, but the page does not appear in the target space.

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Francis Vila
February 25, 2020

You can mark this as duplicate...

TAGS
AUG Leaders

Atlassian Community Events