Preview an image or a file uploaded into a change set
An image or an attachment uploaded into this change set, for its author to see before a module refers to it (GET /assets/{hash} serves it only once a module the reader may see refers to it). PNG and JPEG are shown in place; any other type is sent as Content-Disposition: attachment under the upload's file name (else the hash). Only to the change set's author, as their working copies are: 403 for anyone else who holds content.read.draft, 404 for anyone who does not. Any hash not uploaded into this change set is 404. Streamed as GET /assets/{hash} does (stored type, nosniff, a sandboxing Content-Security-Policy), Cache-Control: private, no-cache. Needs the content.read permission.
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.
changeSetId*stringThe change set’s ID (a UUID). One that names no change set, malformed or not, is 404.
uuidhash*stringSHA-256 of the file, 64 lowercase hex characters.
width?integerA rendition instead of the file: a WebP at most this many pixels wide (320, 640, 1280), never upscaled. Only for PNG, JPEG, GIF and WebP images.
3206401280X-Ccms-User?stringDemo mode only (CCMS_AUTH_MODE=demo): the user ID to act as. The bearer token is still required; without demo mode the header is refused (400).
The file, with its stored type: an image in place, anything else as a download; with width, its WebP rendition.
response?unknowncurl -X GET 'http://localhost:3000/change-sets/497f6eca-6276-4993-bfeb-53cbbbba6f08/assets/string'null