Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,298,374
Community Members
 
Community Events
165
Community Groups

Page update using REST API - No error but the page is not updated

Hello,

 

I have a problem of troubleshooting regarding page update via REST API. I use a REST API to update a page. The input parameter is a JSON.

 

PUT  https://runmyprocess.atlassian.net/wiki/rest/api/content/${pageId}

It works when the JSON is a very simple one like this. I see my page is updated after the API is executed.

{  
   "id":"26738701",
   "type":"page",
   "title":"new page",
   "space":{  
      "key":"RO"
   },
   "body":{  
      "storage":{  
         "value":"<p>UPDATE This is a new page</p>",
         "representation":"storage"
      }
   },
   "version":{  
      "number":2
   }
}

 

However,  if the input JSON is a complicate one, the API itself still success, there is no error message, but the page is not updated.

Can someone tell me how this could be possible? How should I do for further troubleshooting?

 

By the way, if my input JSON has an obvious error, e.g. the version number is not correct, I will receive an error message, something like the version has to be bigger than the current version. The case is quite confusing if there is totally no error message.

 

Thank you for the help.

 

 

 

 

 

1 answer

1 accepted

0 votes
Answer accepted

The problem was resolved.  The problem is the contents of the object which is sent to confluence. There is no error message, so you have to test it part by part. 

Hi @Ni Ma ,

I have the same issue. The request is sent without error but the Confluence page is not updated.

Could you give us more detail about the solution you found please?

Thanks for your help.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Confluence

An update on Confluence Cloud customer feedback – June 2022

Hi everyone, We’re always looking at how to improve Confluence and customer feedback plays an important role in making sure we're investing in the areas that will bring the most value to the most c...

183 views 1 3
Read article

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