I have Confluence 6.15 and i am trying to update one of the pages using the API.
When i run the API for updating a page it gives me the error:
HTTP Status 405 – Method Not Allowed
The method received in the request-line is known by the origin server but not supported by the target resource.
The user has permissions to make this kind of changes, i don't know if i'm not supposed to use the API but instead another option. Or if there is even another option to do it.
Also i'm looking at this documentation, i'm not sure if it applies for my confluence version:
https://developer.atlassian.com/cloud/confluence/rest/#api-content-get
Not sure what is the exact issue here.I usually use below curl to update content via api.
curl -Eusername -X PUT -H 'Content-Type: application/json' -d'{"id":"128286721","type":"page","title":"new testing","space":{"key":"xyzzy"},"body":{"storage":{"value":
"<p>This is the updated text for the new page</p>","representation":"storage"}},
"version":{"number":2}}' https://xyz.confluence.com/confluence/rest/api/content/128286721
Hello,
Thanks for your help, i run the curl command that you sent me but i am getting the same error:
Method Not Allowed
The method received in the request-line is known by the origin server but not supported by the target resource.
Is there any other way to do this?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Do you have a proxy like apache infront?.Is http methods like PUT allowed in the proxy config?
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.