Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-58067

Custom Content: Raw body can't be updated through REST

XMLWordPrintable

      Issue Summary

      Custom content's raw body cannot be updated through REST API.

      Steps to Reproduce

      1. Create a new Custom Content on Confluence Server underneath a page
      2. Now try to update that Custom Content by sending a PUT request against /rest/api/content/<id>. The JSON in the request body should contain a "body" property with the representation "raw".

      Example:

      {
          "type": "my-addon-key:my-custom-content",
          "title": "My Title",
          "body": {
              "raw": {
                  "value": "TEST",
                  "representation": "raw"
              }
          },
          "version": {
              "number": 2
          }
      }
      

      Expected Results

      The raw body of the Custom Content should get updated.

      Actual Results

      The endpoint responds with status 200, but the raw body of the Custom Content does not get updated. However, the title can be updated.

      Notes

      Testing with Questions for Confluence results in a status 501 with message "Not supported, no ApiSupport available for com.atlassian.confluence.plugins.confluence-questions:answer".

      Workaround

      Currently, there is no known workaround for this behavior. A workaround will be added here when available.

              Unassigned Unassigned
              5bdb49e9-eba5-49b6-a2e3-5d9093010788 Deleted Account (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: