List a download’s versions
The download’s file across its product’s releases cut from main (withdrawn ones too), newest first: a version where the file’s hash differs from the version before, from the release it first appeared in, with that release’s date, the checksum, the size, whether it is current, superseded or withdrawn, and its change note (the release’s notes, in the download’s language when it has them, and the attachment’s description). The 500 newest releases are looked through (meta.truncated when there are more). A version you may not read is neither listed nor counted; a download the product’s latest release does not hold for you is 404, as it has no row in the list. Needs content.read. Read as you read released content at each release’s tag: an attachment only in a module you may see there (an attachment in a module above your audience is never listed, counted or served), a manual’s PDF only of a manual one of your roles reads whole there (its audience and language, with no module type or facet left out, as for the release’s outputs).
bearerAuthorizationBearer <JWT>A service account's token (ccms_sat_…, issued by POST /service-accounts/{id}/tokens), or, for local use and demo mode, the server's shared CCMS_API_TOKEN.
id*stringThe download’s ID, as GET /downloads gives it (attachment:<product>:<module>:<block>:<lang>, manual:<product>:<manual>:<lang>:<variant>). One that names no download you may read, malformed or not, is 404.
1 <= length <= 1400page[number]?integerPage to return, from 1. Default: 1.
1 <= valuepage[size]?integerResources per page. Default: 50, at most 200.
1 <= value <= 200application/vnd.api+json- response
data*array<>meta*links*curl -X GET 'http://localhost:3000/downloads/string/versions'{ "data": [ { "type": "DownloadVersion", "id": "string", "attributes": { "state": "current", "sha256": "string", "size": -9007199254740991, "mediaType": "string", "fileName": "string", "release": { "id": "string", "tag": "string", "revision": "string", "publishedAt": "2019-08-24T14:15:22Z" }, "changeNote": { "notes": "string", "description": "string" } }, "links": { "file": "string" } } ], "meta": { "page": { "currentPage": -9007199254740991, "lastPage": -9007199254740991, "perPage": -9007199254740991, "total": -9007199254740991 }, "truncated": true }, "links": { "self": "string", "first": "string", "last": "string", "prev": "string", "next": "string" }}