Gets all assets, or get the assets with the specified ids
URL | GET /asset/v1/assets |
Parameters | See table below |
Body | None |
Request Headers | Authorization - authorization token. |
HTTP Status Codes | 200 – OK 401 – Unauthorized 404 – Not Found |
Response | { |
Request Example 1 returns the two Assets requested:
/asset/v1/assets?ids=myAssetId01&ids=myAssetId02
Request Example 2 returns the first ten assets with the .jpg extension that were created between April 5th and April 16th, in ascending order:
/asset/v1/assets?offset=0&limit=10&order=asc&dateFrom=2019-04-05&dateTo=2019-04-16&origin=.jpg
Parameter | Description | Parameter Type | Data Type |
ids | List of ids. If it is provided, it will win with search criteria like limit, offset and dates. | query | Array[string] |
offset | The first row to return. Used for paging through results. | query | integer |
limit | The number of rows to return. Used for paging through results. | query | integer |
order | Sort order - 'desc' or 'asc'. | query | string |
dateFrom | Only assets created on this date and later will be returned. | query | date |
dateTo | Only assets created on this date and earlier will be returned. | query | date |
origin | Origin attribute to search for partial or complete strings, such as filename patterns, directories in a URL, file extensions, etc. | query | string |
Example response:
[
{
"id": "myTestImage",
"name": "Product_Icon.png",
"contentType": "image/png",
"origin": "Product_Icon.png",
"created": "2021-05-09T21:43:40.422Z",
"status": "READY",
"statusCode": null,
"statusInfo": null
}
]