Details
-
Bug
-
Resolution: Fixed
-
Medium
-
None
-
6
-
Minor
-
1
-
Description
Issue Summary
Updating a page via REST API causes 501 error.
Steps to Reproduce
- Try to update the content with the Update API request:
curl -u 'USER:API-KEY' \ -X PUT \ -H 'Content-Type: application/json' \ -d'{"id":"924844033","type":"page","title":"Test Worked","space":{"key":"MOV"},"body":{"storage":{"value":"<p>This is the updated text for the new page for this test v2</p>","representation":"storage"}},"version":{"number":4}}' https://SITE-NAME.atlassian.net/wiki/rest/api/content/924844033 | python -mjson.tool
- You'll get the below error message:
{ "message": "com.atlassian.confluence.internal.synchrony.ExternalChangesException: Trying to access unreconciled content 924844033. Retry in a few moments", "statusCode": 501 }
Expected Results
The page is updated accordingly.
Actual Results
A 501 error is received and the page is not updated.
Workaround
There are multiple possible workarounds that can be tried:
- Run the call again
- Navigate to the page
- Reach out to Support
- Add ?status=current at the end of the endpoint