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

Can't attach files to a Draft via REST API

    XMLWordPrintable

Details

    Description

      If you attempt to POST to this url /rest/api/content/

      {id}/child/attachment where {id}

      is a draft id, the REST service returns an error

      {
          "statusCode":400,
          "data":
          {
              "authorized":false,
              "valid":true,
              "errors":[]
           },
           "message": "The entity Draft = { id: 884782, type: page, title: null, pageId: 0, pageVersion: 0} is not ContentConvertible or API available"}
      }
      

      This makes no sense because a Draft is a ContentEntityObject and it's possible to add an attachment to one through the Java API as well as the Confluence rich text editor.

      Attachments

        Issue Links

          Activity

            People

              llepper Louis Lepper (Inactive)
              8b87a0f94f00 Ryan Ackley
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: