Get Digital Item Native File with Filename
get
/content/management/api/v1.1/assets/{id}/native/{filename}
Get original uploaded file of a digital item. Content-type header in the response is set to the correct value for the file type.
Request
Path Parameters
-
filename: string
Name of the digital item. Special characters in name must be encoded
-
id: string
id of the item.
Query Parameters
-
asOf(optional): string
This parameter describes a specific item revision. Currently it only supports this value, latestPublished, which means the latest published version.
-
download(optional): boolean
By default, for files of type image, audio and video are rendered inline. For all other file types are downloaded. User can specify the query parameter download=true/false in a request to override this default.
Response
Supported Media Types
- application/octet-stream
- application/json
200 Response
OK.
304 Response
Not modified.
400 Response
Bad request.
403 Response
Forbidden.
404 Response
Not found.
500 Response
Internal server error.
Examples
The following example shows how to render a digital item (using a digital item ID and file name) by submission of a GET request on the REST resource using cURL:
Note:
All the digital item IDs starts with CONT.
curl -X GET -H 'Accept: application/json' 'https://host:port/content/management/api/v1.1/assets/{id}/native/{filename}'
Example:
Response Body
Digital Item is Displayed.