Confluence REST API acting like Waldo

joseph nguyen August 25, 2015

My confluence instance does NOT use the Context "confluence"

 

I made sure that XML RPC was enabled in my administration console, however this URL does not work:

 

I tried this on the command line and in a browser tab where I had logged in to confluence.  I am using Confluence 5.0.3.  Please help.

 

Thank you for your time.

2 answers

0 votes
joseph nguyen August 25, 2015

Thanks Stephen!  This was helpful.  I modified my URL based off of your comment and I was able to perform a REST call using this: http://myhost.com/rest/prototype/1/content/123456789

I will take a look at the XML-RPC API.  On a side note, did you ever work for a company called Avega (name sound familiar)?

Stephen Deutsch
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 25, 2015

No, I never did, and it doesn't really sound familiar... sorry :(

0 votes
Stephen Deutsch
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 25, 2015

Hi Joseph,

Unfortunately you are trying to use the new REST API, which is only active in Confluence 5.5 or higher.  You will instead have to use the prototype REST API as documented here: https://docs.atlassian.com/confluence/REST/5.0.3/

The proper URL to get what you want then would be similar to: http://myhost.com:8080/confluence/rest/prototype/1/content/123456789

Be aware that the prototype REST API is read only.  If you want to do write functions, you will have to use the XML-RPC API, which is a little different.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events