Use the Download orders API to create and retrieve download orders. A download order is a compressed file that contains media files, such as images, vectors, or videos.
Use the Download orders API to create and retrieve download orders. A download order is a compressed file that contains media files, such as images, vectors, or videos.
To use the Download orders API, you need:
curl -i -X GET \
'https://your-server/api/downloadorders/{id}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'If-Modified-Since: 2019-08-24T14:15:22Z'
{ "order_id": 0, "name": "string", "target_count": 0, "has_conversions": true, "created_by": { "href": "string", "filename_properties": [ … ], "title": "string", "templated": false }, "created_on": "2019-08-24T14:15:22Z", "modified_by": { "href": "string", "filename_properties": [ … ], "title": "string", "templated": false }, "status": "string", "download_location": { "href": "string", "filename_properties": [ … ], "title": "string", "templated": false }, "additional_info": "string", "external_job_reference": { "href": "string", "filename_properties": [ … ], "title": "string", "templated": false }, "targets": { "href": "string", "filename_properties": [ … ], "title": "string", "templated": false }, "culture": "string", "self": { "href": "string", "filename_properties": [ … ], "title": "string", "templated": false } }
curl -i -X GET \
'https://your-server/api/downloadorders?skip=0' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
{ "items": [ { … } ], "total_items": 0, "returned_items": 0, "offset": 0, "next": { "href": "string", "filename_properties": [ … ], "title": "string", "templated": false }, "previous": { "href": "string", "filename_properties": [ … ], "title": "string", "templated": false }, "identifier": "string", "self": { "href": "string", "filename_properties": [ … ], "title": "string", "templated": false }, "property1": null, "property2": null }
A download order request that contains the order details.
The configuration to create an order.
Configuration of what to download by asset media group. For example, the rendition MP4
for all videos, and the medium
for all images. Asset media groups are identified by their ID.
Configuration of what to download for individual assets. To use when willing to download something different for specific assets than for the rest of the assets of the same media group. For example, to download the rendition MP4
for a video asset with ID 1234, while for all other videos, the Original
rendition will be downloaded through the global
configuration.
Describes what selection pool to use for an order. The selection pool contains the list of entities to download.
curl -i -X POST \
https://your-server/api/downloadorders \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json-patch+json' \
-d '{
"target_selection": {
"selectionPool": "string",
"subPoolId": 0,
"definitionName": "string"
},
"item_name_resolver_id": "string",
"culture": "string",
"name": "string",
"order": {
"zip_filename": "string",
"global": {
"property1": {
"renditions": [
"string"
],
"conversions": [
[
{
"type": "fileExtension",
"value": {}
}
]
],
"user_rendition_configuration": {
"label": "string",
"culture": "string",
"description": "string"
},
"presets": [
"string"
]
},
"property2": {
"renditions": [
"string"
],
"conversions": [
[
{
"type": "fileExtension",
"value": {}
}
]
],
"user_rendition_configuration": {
"label": "string",
"culture": "string",
"description": "string"
},
"presets": [
"string"
]
}
},
"individual": {
"property1": {
"renditions": [
"string"
],
"conversions": [
[
{
"type": "fileExtension",
"value": {}
}
]
],
"user_rendition_configuration": {
"label": "string",
"culture": "string",
"description": "string"
},
"presets": [
"string"
]
},
"property2": {
"renditions": [
"string"
],
"conversions": [
[
{
"type": "fileExtension",
"value": {}
}
]
],
"user_rendition_configuration": {
"label": "string",
"culture": "string",
"description": "string"
},
"presets": [
"string"
]
}
}
},
"download_order_type": "Standard"
}'
{ "order_id": 0, "name": "string", "target_count": 0, "has_conversions": true, "created_by": { "href": "string", "filename_properties": [ … ], "title": "string", "templated": false }, "created_on": "2019-08-24T14:15:22Z", "modified_by": { "href": "string", "filename_properties": [ … ], "title": "string", "templated": false }, "status": "string", "download_location": { "href": "string", "filename_properties": [ … ], "title": "string", "templated": false }, "additional_info": "string", "external_job_reference": { "href": "string", "filename_properties": [ … ], "title": "string", "templated": false }, "targets": { "href": "string", "filename_properties": [ … ], "title": "string", "templated": false }, "culture": "string", "self": { "href": "string", "filename_properties": [ … ], "title": "string", "templated": false } }
curl -i -X GET \
'https://your-server/api/downloadorders/{orderId}/targets/{entityId}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
{ "entity": { "href": "string", "filename_properties": [ … ], "title": "string", "templated": false }, "self": { "href": "string", "filename_properties": [ … ], "title": "string", "templated": false } }
curl -i -X GET \
'https://your-server/api/downloadorders/{orderId}/targets?skip=0' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
{ "order": { "href": "string", "filename_properties": [ … ], "title": "string", "templated": false }, "items": [ { … } ], "total_items": 0, "returned_items": 0, "offset": 0, "next": { "href": "string", "filename_properties": [ … ], "title": "string", "templated": false }, "previous": { "href": "string", "filename_properties": [ … ], "title": "string", "templated": false }, "identifier": "string", "self": { "href": "string", "filename_properties": [ … ], "title": "string", "templated": false }, "property1": null, "property2": null }