The {FILE_DOCUMENT_UUID} is the uuid for the file's corresponding document in the repository.
The {DOWNLOAD_TYPE} is optional and should be either 1 to download the original asset or 2 to download the presentation copy.
Response
The response when only using UUID:
The returned downloadId is used to identify this specific download and is used in the subsequent requests.
The response when using Type:
As part of the response, CCA has created a manifest for the download containing:
uuid - The v5 uuid for the corresponding metadata document in the repository
uri - The uri for the file
contentClass - Type of file
artifacts - These are the artifact created as part of the download
The artifact download-url is a S3 presigned URL with a lifespan of 15 minutes. Use this URL to download the actual file.
2. Get Status for download
At this point, CCA has started, asynchronously, to process the file for downloading. In order to know when the downloaded file is done and available, you need to poll CCA for status.
Request
The {DOWNLOAD_ID} is the downloadId returned by "1: Create download" request.
Response
Until CCA is done processing the download, the response would be:
When CCA is finished processing the download, the response will be:
As part of the response, CCA has created a manifest for the download containing:
uuid - The v5 uuid for the corresponding metadata document in the repository
hashedFilename - The hashed name for the file
uri - The uri for the file
contentClass - Type of file
artifacts - These are the different artifacts created as part of the download
The artifact {CONTENT_CLASS}-url, e.g. "image-url", is a S3 presigned URL with a lifespan of 15 minutes. Use this URL to download the actual file.
If there was an error processing the download, the response will have "status": "ERROR" and an error message will be supplied.