Hello ,
Currently I'm working on the update functions in my system. Wbhat I'm trying to do is PUT new data to certain page in confluence. I'm doing this via the PUT API function: https://developer.atlassian.com/confdev/confluence-rest-api/confluence-rest-api-examples#ConfluenceRESTAPIExamples-Updateapage I'm using C# to do this. I'm getting some weird errors like {"statusCode":409,"message":"You're using an invalid version of the updated content. The latest version is 3"}
Can someone please tell me how this should be done?
Thank you,
Community moderators have prevented the ability to post new answers.
It seems like you need to update the version number before putting a new version of the page. Just add 1 to the version number before trying to submit.
@Iván SZKIBA Were you able to find the soulution for this. I am facing the same situation right now. Can you please update the answer here.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is what I received:{"statusCode":500,"message":"java.lang.NullPointerException: null"}
And anyway...what if I have to different pages with ID's: 11112 and 11113... then also I should add "1" ? that doesn't seems like a good approach :/
Also when I change the JSON this is what I'm getting:
{"statusCode":403,"message":"Could not update Content of type : class com.atlassian.confluence.pages.Page with id ******* "}
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.