About this resource
Representation of collection of orders. Retrieving this collection is currently not exposed via the REST API. For details on the supported order types, see the documentation for DownloadOrder, EmailOrder, FtpResortOrder and PublicCdnOrder
Relations
Actions
Method | Action | Description | Response codes | ||||||
---|---|---|---|---|---|---|---|---|---|
POST /orders | add | Create an order |
|
Examples
Target Type | Supported Actions |
---|---|
Document | ResizeImage, ResizeImageWithClippingPath, CropImage, TranscodeVideo, CreatePackage, UpdateXmpMetadata |
MasterThumbnail | - |
AllThumbnails | - |
MasterPreview | - |
AllPreviews | - |
AdditionalFiles | ResizeImage, ResizeImageWithClippingPath, UpdateXmpMetadata |
DocumentsOfAllItems | - |
POST /orders HTTP/1.1 { "type": "download", "creatorEmail": "frank.tremens@adamsoftware.net", "disableNotification": "true", "downloadsPageUrl": "http://localhost/Assets/Downloads", "notificationThresholdInSeconds": "0" "targets": [ { "recordId": "15e1090e37a34428a5efa3cd007c7807", "targetTypes": ["MasterPreview", "MasterThumbnail"], "assetType": "AllVersionsOfAllFiles" }, { "recordId": "0333844867764f819ea5a3cd006e67c5", "targetTypes": ["MasterPreview"], "assetType": "LatestVersionOfAllFiles" }, { "targetTypes": ["Document"], "fileVersionId": "541DF508C2DF45B2BC69A782013CB6B8" }, { "targetTypes": ["AdditionalFiles"], "additionalFileId": "ad0ff17667af406994b5a8d200e99106", "actions": [ { "action": "resizeImage", "parameters": { "width": 120, "height": 110, "format": "KeepOriginal", "resolution": 300, "colorSpace": "GrayScale", "useAlphaTransparency": "true" } } ] }, { "recordId": "15e1090e37a34428a5efa3cd007c7807", "targetTypes": ["Document"], "assetType": "AllVersionsOfAllFiles", "actions": [ { "action": "resizeImage", "parameters": { "width": 120, "height": 150, "format": "KeepOriginal", "resolution": 300, "colorSpace": "KeepOriginal", "useAlphaTransparency": "true" } } ] }, ... ] }
POST /orders HTTP/1.1 { "type": "download", "disableNotification": "true", "disableProcessing": "yes", "targets": [ { "recordId": "15e1090e37a34428a5efa3cd007c7807", "targetTypes": ["Document"], "assetType": "LatestVersionOfMasterFile" } ] }
POST /orders HTTP/1.1 { "type": "download", "disableNotification": "true", "targets": [ { "recordIds": [ "bb7855d00e12435d8443b13800994999", "c8816c117ffd4cdf8ee9b13800994a1e", "d2c0f429360442b48b0bb138009947f5" ], "targetTypes": [ "Document" ], "assetType": "LatestVersionOfMasterFile", "actions": [ { "action": "resizeImage", "parameters": { "width": -1, "height": -1, "format": "png", "resolution": -1, "colorSpace": "RGB", "useAlphaTransparency": "true" } } ], "filter":{ "extensions":["png", "tif"] } } ] }The recordIds parameter is an array of record IDs. Only Document and AdditionalFile can be specified as target types in this case.
POST /orders HTTP/1.1 { "type": "email", "emailSubject": "ADAM generated email", "emailBody": "see attached files", "emailRecipients": [ "administrator@adamsoftware.net", "all@adamsoftware.net" ], "creatorEmail": "frank.tremens@adamsoftware.net", "priority": "Medium", "earliestStartDate": "2015-08-20T22:00:00Z", "disableNotification": "true", "targets": [ { "recordId": "15e1090e37a34428a5efa3cd007c7807", "targetTypes": ["MasterPreview", "MasterThumbnail"], "assetType": "AllVersionsOfAllFiles" }, { "recordId": "0333844867764f819ea5a3cd006e67c5", "targetTypes": ["MasterPreview"], "assetType": "LatestVersionOfAllFiles" }, { "recordId": "15e1090e37a34428a5efa3cd007c7807", "targetTypes": ["Document"], "assetType": "AllVersionsOfAllFiles", "actions": [ { "action": "resizeImage", "parameters": { "width": 120, "height": 150, "format": "KeepOriginal", "resolution": 300, "colorSpace": "KeepOriginal", "useAlphaTransparency": "true" } } ] }, ... ] }
POST /orders HTTP/1.1 { "type": "ftpResort", "creatorEmail": "frank.tremens@adamsoftware.net", "priority": "Medium", "earliestStartDate": "2015-08-20T22:00:00Z", "disableNotification": "true", "targets": [ { "recordId": "15e1090e37a34428a5efa3cd007c7807", "targetTypes": ["MasterPreview", "MasterThumbnail"], "assetType": "AllVersionsOfAllFiles" }, { "recordId": "0333844867764f819ea5a3cd006e67c5", "targetTypes": ["MasterPreview"], "assetType": "LatestVersionOfAllFiles" }, { "recordId": "15e1090e37a34428a5efa3cd007c7807", "targetTypes": ["Document"], "assetType": "AllVersionsOfAllFiles", "actions": [ { "action": "resizeImage", "parameters": { "width": 120, "height": 150, "format": "KeepOriginal", "resolution": 300, "colorSpace": "KeepOriginal", "useAlphaTransparency": "true" } } ] }, ... ] }
POST /orders HTTP/1.1 { "type": "publicCdn", "targets": [{ "recordId": "24bb7956-afff-44f1-aae7-b0ff00cf440a" }] }
Creating a new public cdn order for the latest master file of the record converted to png and give it downloadResizedPng renditionName
POST /orders HTTP/1.1 { "type": "publicCdn", "targets": [ { "recordId": "24bb7956-afff-44f1-aae7-b0ff00cf440a", "renditionName":"downloadResizedPng", "actions": [{ "action": "resizeImage", "parameters": { "width": -1, "height": -1, "format": "png", "resolution": -1, "colorSpace": "RGB", "useAlphaTransparency": "true" } }] } ] }
Creating a new public cdn order for specific additional file of the record
POST /orders HTTP/1.1 { "type": "publicCdn", "targets": [{ "recordId": "9dbdcdd123c346a4a863aa5500ac42c9", "additionalFileId": "7495552b-1e26-4473-b121-aa6b0085f880", }] }
Attribute | Description |
---|---|
type |
The type of the order that needs to be created. One of the following types needs to be provided:
|
priority |
The priority of the download order should always be "High" and is not mandatory. |
earliestStartDate | The earliest start date of this order. |
creatorEmail |
The e-mail address for this order. By default this is the e-mail address of the user who created this order. |
downloadsPageUrl |
(optional) if you have a custom downloads page provide the URL here. This property will be used to build the download links in e-mail notifications. If you don't provide a URL the default Downloads page of Assets or the DAM UI will be used. |
disableNotification | A value indicating whether or not notification is enabled on this order. |
targets | An array of references to the records that need to be downloaded in specific formats. |
Attribute | Description |
---|---|
singleFileZipMode | Specify whether a single file must be zipped when it is downloaded. |
Available values for singleFileZipMode are:
but the chosen delivery target doesn't support directories, for example when ordering a Publication-All Items package in a download order. |
Attribute | Description |
---|---|
notificationThresholdInSeconds | The number of seconds that must elapse when processing the job to trigger a notification. NOTE: this only applies to successful download orders. |
Attribute | Description |
---|---|
ftpHostname | The FTP hostname. |
ftpUsername | The FTP username. |
ftpPassword | The FTP password. |
ftpPort | The FTP port. Defaults to 21. |
ftpDirectory | The FTP directory. |
proxyHostname | The FTP proxy hostname. |
proxyUsername | The FTP proxy username. |
proxyPassword | The FTP proxy password. |
proxyPort | The FTP proxy port. Defaults to 80. |
passiveTransfer | Indicates if passive transfer is enabled. |
connectionType |
The FTP connection type. Can be one of the options listed below:
|
Attribute | Description |
---|---|
recipients | A list of recipients to send the mail to. |
subject | The subject of the mail. |
body | The body of the mail. |
Attribute | Description |
---|---|
title |
Specify the title of the download that will appear on the Downloads page in Content Workspace. Title usually is something that can identify download. |
description |
Specify the description of the download that will appear on the Downloads page in Content Workspace. Description is usually the type of download, e.g. Export contact sheet. |
Downloads based on a Download or Contact sheet order are displayed on the Downloads page in DAM UI (Content Workspace).
Values for title and description could be:
Default value for title is either file name or "X items"(if multiple files were ordered). Default value for description is "Download". To provide translations for the title and description for non-English users, refer to the Localization > Translations section of the DAM Administrator Guide. Values for title and description properties should be in the following format: { ... "title":"{\"StudioName\":\"DAMUI\",\"ModuleName\":\"Orders\",\"TranslationKey\":\"DownloadImageForPublishing\"}", "description":"{\"StudioName\":\"DAMUI\",\"ModuleName\":\"Orders\",\"TranslationKey\":\"DownloadImageForPublishingDescription\"}", ... }Where "DAMUI", "Orders", "DownloadImageForPublishing" are examples of a Studio, Module and Translation Key of a translation created earlier. |
Attribute | Description |
---|---|
recordId |
The id of the record that needs to be included in the order. Alternatively, for the download order, the recordIds parameter can be used instead of recordId. Please note that only one of these parameters can be specified at a time - either recordId or recordIds. |
recordIds (for orders with type:"download") |
The array of ids of the records that need to be included in the download order. Use this feature if you need to quickly submit a download order without preloading the records. In this case, no records are preloaded during the creation of the download order; they are loaded only when the order is executed. Please note that you can specify only one of these parameters at a time: either recordId or recordIds. Also, be aware that if you specify recordIds, only Document and AdditionalFile can be specified as target types, and assetType can only be set to LatestVersionOfMasterFile. |
fileVersionId |
The id of the file version that needs to be included in the download (optional). The assetType is ignored if a fileVersionId is provided. |
additionalFileId |
The id of the additional file that needs to be included in the download (optional). The assetType is ignored if an additionalFileId is provided. |
renditionName (for orders with type:"publicCdn") |
When you create a public link for a transformation of an original file, for example by using resizeImage action, you can specify renditionName. Then a specific additional file of type external will be created for the public link and its name will be the value specified as renditionName. The same renditionName value will be used in the public link uri if @RENDITIONNAME variable is used in .orderPublicLinkNamingConvention. Please note that to create public link based on the specific additional file which is a rendition of the record generated based on the preset from .renditionPresets setting, the ID of that additional file should be passed along as additionalFileId. Passing renditionName in that case has no effect. |
targetTypes |
Array of one or more of the options listed below:
|
assetTypes |
One of the following available options:
|
filter (for orders with type:"download" and when recordIds attribute is used) |
The optional filter parameters let you further refine what is downloaded.
You can, for example, only include the output if the file (original file, additional file) has one of the listed file extensions
or when the file name matches a string. You can combine both parameters or use only one of them.
|
actions | The actions that need to be executed on this target. |
Attribute | Description |
---|---|
action |
The name of the action that needs to be executed on the target. The following actions are supported:
|
parameters | The parameters that need to be passed to the action. |
Actions
-
ResizeImage
Resizes an image.
The following parameter attributes need to be provided:
Attribute Description width The width to which the image needs to be resized. height The height to which the image needs to be resized. format The following formats are supported: - keepOriginal
- jpg
- png
- tiff
- bmp
- eps
- webp
resolution The resolution in dpi. colorSpace The following colorSpaces are supported: - keepOriginal
- rgb
- cmyk
- lab
- indexedColor
- grayscale
- bitmap
useAlphaTransparency The following values are supported: - true
- false
-
ResizeImageWithClippingPath
Resizes an image and makes modifications according to clipping path provided.
The following parameter attributes need to be provided:
Attribute Description width The width in pixel to which the image needs to be resized. height The height in pixel to which the image needs to be resized. mediaProfile The name of the media profile. clippingPath The name of the clipping path.
-
CropImage
Crops an image.
The following parameter attributes need to be provided:
Attribute Description Crop - X
- Y
- Width
- Height
The coordinates of the crop in the original image. X and Y are the coordinates of the upper left corner of the crop, with X and Y starting from 0 in the upper left corner. The width and height are relative to these coordinates. Example: "crop": { "x" : 200, "y" : 300, "width" : 150, "height" : 250 }
ResizeWidth The width to which the cropped image needs to be resized. ResizeHeight The height to which the cropped image needs to be resized. format The following formats are supported: - keepOriginal
- jpg
- png
- tiff
- bmp
- eps
resolution The resolution in dpi. colorSpace The following colorSpaces are supported: - keepOriginal
- rgb
- cmyk
- lab
- indexedColor
- grayscale
- bitmap
-
TranscodeVideo
Transcodes a video.
The following parameter attributes need to be provided:
Attribute Description maxHeight The maximum height to which the video needs to be transcoded.
The following values are standard video heights:- 4320
- 2160
- 1080
- 720
- 576
- 480
- 288
- 240
quality The quality to which the video needs to be transcoded.
The following values are supported:- Lowest
- Low
- Medium
- High
- Highest
audioQuality The audio quality of the video that needs to be transcoded.
The following values are supported:- KeepOriginalAudio
- StereoAac
- MonoAac
outputFormat The format to which the video needs to be transcoded.
The following output formats are supported:- mp4
- webm
-
TrimVideo
Trims a video.
The following parameter attributes need to be provided:
Attribute Description startTime The start time (format: "hh:mm:ss[.fffffff]") of the trimmed video. duration The duration (format: "hh:mm:ss[.fffffff]") of the trimmed video.
-
CreatePackage
Downloads a package. It is required that the file is uploaded as a Package. This can be checked by the availability of a manifest. See "Package Download" in the Administrator Guide.
No Parameters are accepted.
-
UpdateXmpMetadata
Update xmp metadata for jpg images based on xmp metadata mapping on system setting.
No Parameters are accepted.
{ "_links": { "self": { "href": "/order/f0233034fd8441028977a4f000e0d35d" } }, "id": "f0233034fd8441028977a4f000e0d35d", "status": "Executing", "deliveredFiles": [] }
GET /order/94c217e4565f44d79beea4ba00a2fa97 HTTP/1.1