Hi,
I have been trying to make REST requests using Confluence 4.3.1. They all fail with 'Page not found', however, if I make the same request against confluence.atlassian.com, the request is sucessful.
Just wondering if 4.3.1 supported REST, or am I missing something else.
From memory, a REST prototype came in 3.2 or 3.3, then when they decided to do it properly (because the prototype basically worked), it was enabled properly in 5.something. The URLs changed though, so stuff you see documented for 5 won't work for lower versions, as the endpoints are wrong.
I think you need https://confluence.atlassian.com/display/CONF53/Prototype+REST+API as a starting point.
The prototype version is read-only, so if you want to do any write operations, you'll have to use the XML-RPC/JSON-RPC methods. The new REST API (with POST/PUT/DELETE) was implemented in Confluence 5.5.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
So it is possible to do write operations in 4.3.1?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No, because the prototype, as Stephen said, is read only.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
But it is possible to do write operations, it's just that you have to use the different API (RPC). Please let me know what you are trying to do and in which language.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Stephen, I am using XSLT to convert XML to Confluence Markup and the I want to add the markup to Confluence using RPC. I am trying to do this in Java.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This should help you out: https://developer.atlassian.com/jiradev/jira-apis/jira-api-status/jira-rpc-services/jira-xml-rpc-overview/creating-an-xml-rpc-client#CreatinganXML-RPCClient-BuildingaJavaclient Just subsitute "confluence2" for the client instead of "jira1". Then you should be able to use the methods on this page: https://developer.atlassian.com/confdev/confluence-rest-api/confluence-xml-rpc-and-soap-apis/remote-confluence-methods#RemoteConfluenceMethods-Pages and the required format for pages is here: https://developer.atlassian.com/confdev/confluence-rest-api/confluence-xml-rpc-and-soap-apis/remote-confluence-data-objects#RemoteConfluenceDataObjects-pagePage I would recommend doing a getPage so you can see the format and just change the values to what you need to. Good luck!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you Stephen!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.