We have a requirement where we need to update the existing table on confluence page using Rest API. We download the table content and then parse the data using JSOUP html parser and then get all first table. From Table Element we retrieved all rows Element and row element we add new <td>New Data</td> but while submitting this table we are getting 500 Internal Server Error and at times BAD request. But this data is getting parsed correctly on HTML page and also on JSON formatter properly.
Hello vimlesh,
If you're getting a 500 error it might be that the data you're sending isn't converted to HTML/XML correctly.
For example, in the REST call, if the table has a field like Peanut Butter & Jelly, then the & needs to be &.
Alternatively you can check the atlassian-confluence.log file when you make the REST call to see if it gives any errors.
Regards, James
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.