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>"
}
}
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).
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.