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

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.
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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events