Get A Release Content By ID¶
Download content for a given release ID. The client
will be redirected to a download URL of the requested content. If the
request content is a folder, the server will respond with HTTP status code
204 No Content. The server will set the Content-Disposition HTTP header
to allow the client to save the file under the correct filename. Note that
this header has to be supported by your download client.
Note
When using wget you may need to provide the ‘–content-disposition’ parameter.
Endpoint |
/contents/{ID} |
HTTP Methods |
GET |
Response Content Type |
|
Response Body |
|
Example Request¶
wget --content-disposition https://example.com/contents/49
GET /contents/49 HTTP/1.1
Host: example.com
Accept: application/octet-stream
Get a direct download link to Release Content By ID¶
In some cases a client may need a direct download url for later use. This call will generate such an URL which will have a validity period of 12 hours.
It is currently not possible to customise this validity. If the requested content is a folder, the server will respond with HTTP status code
204 No Content.
Endpoint |
/contents/{ID}/download-url |
HTTP Methods |
GET |
Response Content Type |
|
Response Body |
|
Example Request¶
GET /contents/49/download-url HTTP/1.1
Host: example.com
Content-Type: application/json
{
"url": "https://download-url"
}