Has anyone been able to do this through REST?
Is there another approach? I want to delete a number of pages, but the all need this id, not easy to divine from query. Thanks
https://confluence.atlassian.com/confkb/how-to-get-confluence-page-id-648380445.html
REST API pageid delete page via REST how do I obtain PAGEID?
Hi @[deleted]
You should be able to get the page id via rest api by:
Examples for performing Rest API on Confluence can be found here
Do let me know if you have any further questions.
Cheers.
I thought there would be something less hack-like and more deterministic like "get me the page id of this page that I just retrieved" Navigating through all the json noise to identify the page id seems ugly; Anyhow, I did find something more apropos by:
curl -u admin:admin -X GET "http://localhost:8080/confluence/rest/api/content?title=myPage%20Title
&spaceKey=TST&expand=history" | python -mjson.tool
...doing the equivalent in C#
Thanks
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.