In this article
Download Media by Version
This endpoint is used for Downloading a media file based on file version.
URL
https://{{HOST}}/files/{filename}/version/{version}
Method
get
Required IMS Scopes
- apollo_read
URL Path Parameters
| Name | Description | Example | Type |
|---|---|---|---|
| filename required |
File name which user wants to download | abc.png | string |
| version required |
File version which user wants to download | 2 | string |
Request Header Parameters
| Type | Value | Description | ostman |
|---|---|---|---|
| Authorization required |
Bearer {access_token} | Description | |
| Content-Type required |
application/json | Description | |
| ercollectionid required |
application/json | Description |
Example
Request
curl -X get
'https://{{HOST}}/files/example.png/version/2'
-H 'Authorization: Bearer {access_token}'
-H 'Content-Type: application/json' ,
-H 'ercollectionid: {ercollectionid}'
Response
Media Stream
Errors
| Error | Description |
|---|---|
| 400 Bad Request | ER Collection ID not provided |
| 400 Bad Request | Invalid filename |
| 403 Forbidden | The request is understood, but it has been refused or access is not allowed |
| 404 Not Found | File not found |
| 500 Internal Server Error | Error while processing the request |