Confluence API Usage Notes

Submitted by code_admin on Wed, 07/25/2018 - 15:43

https://docs.atlassian.com/atlassian-confluence/REST/latest-server/#con…

http://wiki.imperial.ac.uk/rest/api/content?spaceKey=IED&title=SIMP+Int…
http://wiki.imperial.ac.uk/rest/api/content?spaceKey=IED&title=SIMP+Int…

IED

Test Page
https://wiki.imperial.ac.uk/display/IED/TMP+TO+DELETE

Retrieive content ID and version:

http://wiki.imperial.ac.uk/rest/api/content?spaceKey=IED&title=TMP+TO+D…
http://wiki.imperial.ac.uk/rest/api/content?spaceKey=IED&title=TMP+TO+D…

http://wiki.imperial.ac.uk/rest/api/content?spaceKey=IED&title=TMP%20TO…

Got
ID: 84101775
version:

Update content
PUT
http://wiki.imperial.ac.uk/rest/api/content/84101775

  1. {
  2.     "version": {
  3.         "number": 5
  4.     },
  5.     "title": "TMP TO DELETE",
  6.     "type": "page",
  7.     "body": {
  8.         "storage": {
  9.             "value": "<table class=\"wrapped\"><colgroup><col /><col /><col /><col /></colgroup><tbody><tr><th>Epic</th><th>Stories</th><th>Points</th><th>Progress</th></tr></tbody></table>",
  10.             "representation": "storage"
  11.         }
  12.     }
  13. }
RJM Article Type
Work Notes