Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Cannot copy page hiearchy via REST API


When I try to copy a page hierarchy from one space to another, I am getting the following error:

The page exists, but you do not have permission to view it


I can do it from the web using the same user. I ma not quite sure what I am doing wrong.

I may be using one of the parameters wrong. What is the destinationPageId? Where do I get that? Do I create a page and then use that? 

{ "copyAttachments": true,
"copyPermissions": true,
"copyProperties": true,
"copyLabels": true,
"copyCustomContents": true,
"destinationPageId": "<string>", <- I am not sure what this is?
"titleOptions": {
"prefix": "<string>",
"replace": "<string>",
"search": "<string>"

2 answers

destinationPageId is the page ID where content of the copied page will be created. That means that you should create an empty page and copy the content to it (put its ID in the destinationPageId parameter).

0 votes
Alex Koxaras Community Leader Sep 18, 2021

Hi @Michael Sole 

Each space has an overview page, which is consider to be the top level in the page tree. Clicking on the overview of the target space, and looking at the URL will give you the page ID. Did you try to see if that is the destinationPageId? To me this might be the solution you are looking for.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence

An update on Confluence Cloud customer feedback – June 2022

Hi everyone, We’re always looking at how to improve Confluence and customer feedback plays an important role in making sure we're investing in the areas that will bring the most value to the most c...

246 views 2 5
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you