Downloading asset renditions

Downloading asset renditions using asset profiles

To download asset rendition using asset profiles. First, you need to retrieve all the configured asset profiles in the system. To do this, go to step 2 Getting asset profiles. 

In the request, set the load_profile_ds_urls and profile_ds_urls_to_return parameters to get asset rendition URLs. The profile_ds_urls_to_return parameter values is/needs to be an array of profile names.

API

GET: /v1/assets/{asset_id}?load_profile_ds_urls=true&profile_ds_urls_to_return=Web quality,Mobile quality

The API call returns a response that is similar to the following:

Response

{
    "category": "file",
    "category": "file",
    "id": "2f65cdce-16fe-495c-8135-a4a38df4d103",
    "name": "Cream Tube White with Floor and Wall-0.jpg.jpeg",
    "description": null,
    "parent_folder_id": "016825e3-6633-4fa7-b037-edf21a372f63",
    "create_time": "2024-10-23T05:04:36.063+00:00",
    "update_time": "2024-10-23T05:06:01.571+00:00",
    "deleted": false,
    "hidden": false,
    "version_no": 1,
    "mime_type": "image/jpeg",
    "content_type": "IMAGE",
    "latest": true,
    "spotlighted": false,
    "spotlighted_to_home": false,
    "content_size": 142054,
    "_links": {
        "urn:eim:linkrel:profile:mobile quality": {
            "href": "https://coredam.dev.ca.opentext.com/ds/coredam-dev1/rendition/pid_420/2f65cdce-16fe-495c-8135-a4a38df4d103/Cream Tube White with Floor and Wall-0.jpg.jpeg"
        },
        "urn:eim:linkrel:profile:web quality": {
            "href": "https://coredam.dev.ca.opentext.com/ds/coredam-dev1/rendition/pid_421/2f65cdce-16fe-495c-8135-a4a38df4d103/Cream Tube White with Floor and Wall-0.jpg.jpeg"
        }
    },

   .......................
}

The URLs in the above response are the asset rendition URLs and they are publicly accessible delivery service URLs. You do not need to set an Authorization header in the request with access token in the request to access these URLs.

Your Progress

Downloading asset renditions using asset profiles