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

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
4,554,975
Community Members
 
Community Events
184
Community Groups

Curl creation confluence

Hello, I would like to retrieve the id of the page created by making this request

 

curl -u USER -X POST -H 'Content-Type:application/json' -d @/tmp/pagesCF2.json  "https://$$$$/confluence/rest/api/content/" -v

Do you have an idea?

Thank you

 

1 answer

1 vote
Fabio Racobaldo _Herzum_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Mar 12, 2023

Hi @Airbus DS ,

please take a look to the following REST API doc https://docs.atlassian.com/ConfluenceServer/rest/8.1.1/#api/content-getContent

In particulare you should provide some parameters to your request in order to retrive the content and api will return all information about the content itsefl.

Hope this helps,

Fabio

Hi Fabio, 
Thanks for your help, 

My need is to retreive the content id just after the page creation in order to apply modification on it.

I wanted to find a command that parse the curl creation response in order to get the created page id. 


Best regards

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events