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

Getting attachments in REST API v2 by version is not working

XMLWordPrintable

      Issue Summary

      The cloud endpoint /wiki/api/v2/attachments/{id}?version={number} used to retrieve information about an specific version of an attachment and is returning a 400 error "Only historical content can be fetched by version ('status=draft' cannot be used with 'version' parameter)"

      Steps to Reproduce

      1. Attempt to retrieve an specific version of an attachment using /wiki/api/v2/attachments/{id}?version={number}

      Expected Results

      To receive information related to the specific version of the attachment.

      Actual Results

      This error is being returned:

      {
        "errors": [
          {
            "status": 400,
            "code": "INVALID_REQUEST_PARAMETER",
            "title": "Only historical content can be fetched by version ('status=draft' cannot be used with 'version' parameter)",
            "detail": null
          }
        ]
      } 

              93c9a09caa60 Andrii Mandzii
              9e6ef5b5b664 Rodrigo Morette
              Votes:
              3 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: