The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Curl creation confluence

Airbus DS
March 10, 2023

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Fabio Racobaldo _Catworkx_
Community Champion
March 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

Rachid El Mansouri
March 13, 2023

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

TAGS
AUG Leaders

Atlassian Community Events