Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

How to specify parent page of new/updated page in Confluence REST API?

I'm able to create/modify pages via the Confluence REST API, but they all appear at the space root. If I move a page manually, and then I update its content via the API, it is moved back to the space root. How do I create a page which has another page as its parent?

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

2 votes
Answer accepted

One of the comments in this stack overflow question details how to create the new page as a child of an existing page using the 'ancestors' property:

http://stackoverflow.com/questions/23523705/how-to-create-new-page-in-confluence-using-their-rest-api

But it does warn that this is an undocumented feature.

Yes, great, that comment did the trick.

"ancestors":[{"type":"page","id":12345}]

How do you get the ancestor ID of an existing page? It's always empty (either an empty array or an empty string) when I fetch the page.

TAGS
AUG Leaders

Atlassian Community Events