It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to PUT new data to certain page

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:  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,

3 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Answer accepted

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.

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 *******  "}

@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. 

Community showcase
Posted in Europe

Christian Reichert, Björn Döhler, re:solution: Video and Slides online

Not one, but two f***ing legends busting myths about passwords and user management. From left to right: Christian Reichert and Björn Döhler from re:solution going on a grand tour. Video here:  h...

13 views 0 1
View post

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you