Uploaded image for project: 'Confluence Cloud'
  1. Confluence Cloud
  2. CONFCLOUD-72349

API Update content call shows 501 error message

    XMLWordPrintable

Details

    Description

      Issue Summary

      Updating a page via REST API causes 501 error. 

      Steps to Reproduce

      1. 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
        
      1. 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:

      1. Run the call again
      2. Navigate to the page
      3. Reach out to Support
      4. Add ?status=current at the end of the endpoint

       

      Attachments

        Issue Links

          Activity

            People

              57d028c6506e Alex Williams
              590db20ccbc2 Isaac S (Atlassian Support)
              Votes:
              10 Vote for this issue
              Watchers:
              15 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: