Getting attachments in REST API v2 by version is not working

XMLWordPrintable

    • Severity 3 - Minor

      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
          }
        ]
      } 

              Assignee:
              Andrii Mandzii
              Reporter:
              Rodrigo Morette
              Votes:
              3 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: