Hi
I am able to copy a page via the REST API.
I can set the ancestor, but I can't set the position (above or below) other child.
All my created pages are sort in alphabetical order.
Is there a way to specify the right position?
Community moderators have prevented the ability to post new answers.
I've figured out my issue but does anyone know how to copy images from one page to then next? My current code using powershell is this following $post = @{ type = 'page' title = $page.title space = @{ key = $destspace} body = @{ storage = @{ value = $page.body.view.value representation = 'storage' } } } $json = ConvertTo-Json $post
Hi, did you found the Answer to your Question ? I have the same Problem...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi In python, something like this: payload = { "title":"<PAGE TITLE>", "type":"page", "space": { "key": "<SPACEKEY>" }, "body":{ "storage":{ "value":"<put your content of the page here>", "representation":"storage" } } } r = requests.post(URLserver + "/rest/api/content/", data=json.dumps(payload), auth=auth, headers=({"Content-Type":"application/json"})) Best regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Klaas, I use the REST API. Get the body.storage from a page, then passing it in the payload of a post. Change the space or change the page title if you copy in the same space. Best regards Regis
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Regis, What is your method to copy a page? I can only find an example on creating a page: https://developer.atlassian.com/confdev/confluence-rest-api/confluence-rest-api-examples#ConfluenceRESTAPIExamples-Createanewpage
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Community moderators have prevented the ability to post new answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.