This API is used to manage the content within the Archive, actions like add asset, edit asset and delete asset. All calls must be made by supplying the unique token for your organization.
/api/archive
Creates a new asset in the archive. This call takes meta-data only. Once an asset is successfully created, files can be added by using the addAssetFile action.
Method: GET/POST
Parameters:
| Name | Value | Requirement | Info |
|---|---|---|---|
| organizationId | number | Mandatory | Icareus Suite organization identifier |
| version | string | Mandatory | 02 - otherwise will default to version 1 |
| token | string | Mandatory | Secret key of the organization |
| action | "addAsset" | Mandatory | |
| userId | number | Optional | If asset belongs to a specific Icareus Suite user |
| referenceId | number | Optional | If the asset is linked to an id in an external/3rd party system |
| groupItemId | number | Mandatory | Use 'getGroups' call to get available group item ids |
| groupItemIds | string | Optional | Comma separated string of multiple groupItemIds (e.g. 1234567,12312312,666666) |
| languageId | string | Mandatory | fi_FI,en_US, en_UK ... |
| title | string | Mandatory | Asset's title |
| description | string | Optional | Asset's description |
| programName | string | Optional | Asset's program name |
| seasonNumber | number | Optional | Asset's season number |
| episodeNumber | number | Optional | Asset's episode number |
| duration | number | Optional | Asset's duration (seconds) |
| releasedYear | number | Optional | Release year of the asset |
| director | string | Optional | Director of the asset |
| actors | string | Optional | A comma separated list of actors/actresses |
| spokenLanguages | string | Optional | A comma separated list of spoken languages in the asset. (i.e. 'fi,en,sv') |
| contentRatingIds | string | Optional | A comma separated list of Content Rating ID's. i.e. '1234,1235,1236' |
| contentTypeIds | string | Optional | A comma separated list of Content Type ID's. i.e. '4321,4322,4323' |
| tags | string | Optional | comma separated tags in one string |
| publishStart | number | Optional | Timestamp (milliseconds) for when to publish this item. If not given, will set to NOW |
| publishEnd | number | Optional | Timestamp (milliseconds) for when to un-publish this item. If not give, will never unpublish |
| videoQuality | number | Optional | Set 1 for HD quality, otherwise the asset will be in SD quality |
| thumbnailUrl | string | Optional | A valid http image url with extension. Preferred size: 1280x720 |
| coverImageUrl | string | Optional | A valid http image url with extension. Aspect ratio should preferably be that of a DVD cover. |
| bannerImageUrl | string | Optional | A valid http image url with extension. |
{ "status":"ok", "message":"asset added successfully", "assetId":"2222"} |
Response (Error):
{ "status":"error", "message":"incorrect organizationId/token pair"} |
Same pattern applies to all acknowledgement calls. Status "ok" means a successful execution of the intended action. Status "error" will have the corresponding error information in the message parameter
Edit or update an asset's meta data in the archive
Method: GET/POST
Parameters:
| Name | Value | Requirement | Info |
|---|---|---|---|
| organizationId | number | Mandatory | Icareus Suite organization identifier |
| version | string | Mandatory | 02 - Otherwise will default to version 1 |
| token | string | Mandatory | Secret key of the organization |
| action | "updateAssetMeta" | Mandatory | |
| assetId | number | Mandatory | Asset identifier |
| languageId | string | Optional | fi_FI,en_US, en_UK ... |
| title | string | Optional | New asset title |
| description | string | Optional | New asset description |
| groupItemIds | string | Optional | Comma separated string of multiple groupItemIds (e.g. 1234567,12312312,666666) |
| programName | string | optional | New asset program name |
| seasonNumber | number | optional | New asset season number |
| episodeNumber | number | optional | New asset episode number |
| duration | number | optional | New asset duration (seconds) |
| releasedYear | number | Optional | Release year of the asset |
| director | string | Optional | Director of the asset |
| actors | string | Optional | A comma separated list of actors/actresses |
| spokenLanguages | string | Optional | A comma separated list of spoken languages in the asset. (i.e. 'fi,en,sv') |
| contentRatingIds | string | Optional | A comma separated list of Content Rating ID's. i.e. '1234,1235,1236' |
| contentTypeIds | string | Optional | A comma separated list of Content Type ID's. i.e. '4321,4322,4323' |
| tags | string | Optional | comma separated tags in one string |
| publishStart | number | Optional | Timestamp (milliseconds) to change the publish date/time |
| publishEnd | number | Optional | Timestamp (milliseconds) for change the un-publish date/time |
| thumbnailUrl | string | Optional | A valid http image url with extension. Preferred size: 1280x720 |
| coverImageUrl | string | Optional | A valid http image url with extension. Aspect ratio should preferably be that of a DVD cover. |
| bannerImageUrl | string | Optional | A valid http image url with extension. |
Adds a new group item to the account.
Method: GET/POST
Parameters:
| Name | Value | Requirement | Info |
|---|---|---|---|
| action | "addGroup" | Mandatory | |
| organizationId | number | Mandatory | Icareus Suite organization identifier |
| token | string | Mandatory | Secret key of the organization |
| groupType | string | Mandatory | Value: "Folders" |
| name | String | Mandatory | name of group |
| languageId | string | Mandatory | fi_FI,en_US, en_UK ... |
| parentId | number | Optional | groupItemId of the parent group (if want to add as subgroup) |
| imageUrl | string | Optional | A valid http image url with image extension. Preferred size: 1280x720 |
{ "status":"ok", "message":"group added", "groupItemId":123456} |
Get a list of all groups in a single group type.
Method: GET
Parameters:
| Name | Value | Requirement | Info |
|---|---|---|---|
| action | "getGroups" | Mandatory | |
| organizationId | number | Mandatory | Icareus Suite organization identifier |
| token | string | Mandatory | Secret key of the organization |
| groupTypeId | number | Mandatory | Predefined ID for folders |
| groupTypeName | string | Mandatory (if groupTypeId not given) | Value: "Folders" |
| groupItemId | number | Mandatory (if groupTypeId and groupTypeName not given) | Get sub groups of some specific group item |
| language | string | Optional | fi_FI,en_US, en_UK ... |
{"status":"ok", "groupItems":[ { "id":1, "title":"Prison Break", "groupItems":[ { "id":11, "title":"Season 1", "groupItems": "[]", }, { "id":12, "title":"Season 2", "groupItems": "[]", }, { "id":13, "title":"Season 3", "groupItems": "[]", } ] }, { "id":2, "title":"Lost", "groupItems":[ { "id":21, "title":"Season 1", "groupItems": "[]", }, { "id":22, "title":"Season 2", "groupItems": "[]", }, { "id":23, "title":"Season 3", "groupItems": "[]", } ] } ]} |
Updates a group item to the account.
Method: GET/POST
Parameters:
| Name | Value | Requirement | Info |
|---|---|---|---|
| action | "updateGroup" | Mandatory | |
| organizationId | number | Mandatory | Icareus Suite organization identifier |
| groupItemId | number | Mandatory | ID of group item |
| token | string | Mandatory | Secret key of the organization |
| name | String | Mandatory | name of group |
| languageId | string | Mandatory | fi_FI,en_US, en_UK ... |
| imageUrl | string | Optional | A valid http image url with image extension. Preferred size: 1280x720 |
{ "status":"ok", "message":"group updated", "groupItemId":123456} |
Delete a group item from the account.
Method: GET/POST
Parameters:
| Name | Value | Requirement | Info |
|---|---|---|---|
| action | "deleteGroup" | Mandatory | |
| organizationId | number | Mandatory | Icareus Suite organization identifier |
| groupItemId | number | Mandatory | ID of group item |
| token | string | Mandatory | Secret key of the organization |
{ "status":"ok", "message":"group deleted"} |
Creates a new asset in the archive. This call takes meta-data only. Once an asset is successfully created, files can be added by using the addAssetFile action.
Method: GET/POST
Parameters:
| Name | Value | Requirement | Info |
|---|---|---|---|
| organizationId | number | Mandatory | Icareus Suite organization identifier |
| token | string | Mandatory | Secret key of the organization |
| action | "addAsset" | Mandatory | |
| userId | number | Optional | If asset belongs to a specific Icareus Suite user |
| referenceId | number | Optional | If the asset is linked to an id in an external/3rd party system |
| groupItemId | number | Mandatory | Use 'getGroups' call to get available group item ids |
| groupItemIds | string | Optional | Comma separated string of multiple groupItemIds (e.g. 1234567,12312312,666666) |
| languageId | string | Mandatory | fi_FI,en_US, en_UK ... |
| title | string | Mandatory | Asset's title |
| description | string | Optional | Asset's description |
| programName | string | Optional | Asset's program name |
| seasonNumber | number | Optional | Asset's season number |
| episodeNumber | number | Optional | Asset's episode number |
| duration | number | Optional | Asset's duration (seconds) |
| tags | string | Optional | comma separated tags in one string |
| publishStart | number | Optional | Timestamp (milliseconds) for when to publish this item. If not given, will set to NOW |
| publishEnd | number | Optional | Timestamp (milliseconds) for when to un-publish this item. If not give, will never unpublish |
| videoQuality | number | Optional | Set 1 for HD quality, otherwise the asset will be in SD quality |
| thumbnailUrl | string | Optional | A valid http image url with extension. Preferred size: 1280x720 |
It is possible to specify encoded title and description for an asset. Base64 encoding should be used. The set of parameters is the same, except the following fields.
| Name | Value | Requirement | Info |
|---|---|---|---|
| action | "addAssetEncoded" | Mandatory | |
| title | string | Mandatory | Asset's title (Base64 encoding) |
| description | string | Optional | Asset's description (Base64 encoding) |
{ "status":"ok", "message":"asset added successfully", "assetId":"2222"} |
Response (Error):
{ "status":"error", "message":"incorrect organizationId/token pair"} |
Same pattern applies to all acknowledgement calls. Status "ok" means a successful execution of the intended action. Status "error" will have the corresponding error information in the message parameter
Adds a file for an asset. The file is a part of API request.
MUST be a multipart/form-data request
Parameters:
| Name | Value | Requirement | Info |
|---|---|---|---|
| organizationId | number | Mandatory | Icareus Suite organization identifier |
| token | string | Mandatory | Secret key of the organization |
| action | "addAssetFile" | Mandatory | |
| assetId | number | Mandatory | Asset identifier |
| userId | number | Mandatory | Icareus Suite user identifier |
| uploadFile | file | Mandatory | Asset file |
| callbackUrl | string | Optional | Encoded URL that needs to be called once the file is uploaded and encoded. The url is called using GET request. It may contain some query string parameters. Icareus Suite will add one more parameter that is "status". Currently supported values are "success" and "error". |
| presetId | number | Optional | If the file is already encoded with a specific preset, 0 otherwise. |
{ "message":"file successfully added for asset 290079", "status":"ok"} |
Adds a file for an asset. The file is specified in the fileUrl request parameter.
Method: POST
Parameters:
| Name | Value | Requirement | Info |
|---|---|---|---|
| organizationId | number | Mandatory | Icareus Suite organization identifier |
| token | string | Mandatory | Secret key of the organization |
| action | "addAssetFile" | Mandatory | |
| assetId | number | Mandatory | Asset identifier |
| userId | number | Mandatory | Icareus Suite user identifier |
| fileUrl | string | Mandatory | Encoded file URL. Currently, only local file system urls are supported. The 'liferay' user should be able to access the file. Example: file:///mnt/upload/clips/movie.mp4 |
| callbackUrl | string | Optional | Encoded URL that needs to be called once the file is uploaded and encoded. The url is called using GET request. It may contain some query string parameters. Icareus Suite will add one more parameter that is "status". Currently supported values are "success" and "error". |
| presetId | number | Optional | If the file is already encoded with a specific preset, 0 otherwise. |
{ "message":"file successfully added for asset 290079", "status":"ok"} |
Adds a file for an asset. The file is specified in the fileUrl request parameter.
Method: GET/POST
Parameters:
| Name | Value | Requirement | Info |
|---|---|---|---|
| organizationId | number | Mandatory | Icareus Suite organization identifier |
| token | string | Mandatory | Secret key of the organization |
| action | "addAssetFileUrl" | Mandatory | |
| assetId | number | Mandatory | Asset identifier |
| userId | number | Mandatory | Icareus Suite user identifier |
| fileUrl | string | Mandatory | Encoded file URL |
| presetId | number | Optional | If the file is already encoded with a specific preset, 0 otherwise. |
{ "message":"file successfully added for asset 290079", "status":"ok"} |
Edit or update an asset's meta data in the archive
Method: GET/POST
Parameters:
| Name | Value | Requirement | Info |
|---|---|---|---|
| organizationId | number | Mandatory | Icareus Suite organization identifier |
| token | string | Mandatory | Secret key of the organization |
| action | "updateAssetMeta" | Mandatory | |
| assetId | number | Mandatory | Asset identifier |
| languageId | string | Optional | fi_FI,en_US, en_UK ... |
| title | string | Optional | New asset title |
| description | string | Optional | New asset description |
| groupItemIds | string | Optional | Comma separated string of multiple groupItemIds (e.g. 1234567,12312312,666666) |
| programName | string | optional | New asset program name |
| seasonNumber | number | optional | New asset season number |
| episodeNumber | number | optional | New asset episode number |
| duration | number | optional | New asset duration (seconds) |
| tags | string | Optional | comma separated tags in one string |
| publishStart | number | Optional | Timestamp (milliseconds) to change the publish date/time |
| publishEnd | number | Optional | Timestamp (milliseconds) for change the un-publish date/time |
| thumbnailUrl | string | Optional | A valid http image url with extension. Preferred size: 1280x720 |
Updates a file for an asset.
MUST be a multipart/form-data request
Parameters:
| Name | Value | Requirement | Info |
|---|---|---|---|
| organizationId | number | Mandatory | Icareus Suite organization identifier |
| token | string | Mandatory | Secret key of the organization |
| action | "updateAssetFile" | Mandatory | |
| assetId | number | Mandatory | Asset identifier |
| fileId | number | Mandatory | Asset file identifier |
| file | file | Mandatory | Asset file |
| master | boolean | Optional | If left out, the file will not be set as the master file for that asset |
| presetId | number | Optional | If the file is already encoded with a specific preset |
{ "status":"ok", "message":"asset successfully updated", "assetId":"2222"} |
Updates a file URL for an asset.
Method: POST
Parameters:
| Name | Value | Requirement | Info |
|---|---|---|---|
| organizationId | number | Mandatory | Icareus Suite organization identifier |
| token | string | Mandatory | Secret key of the organization |
| action | "updateAssetFileUrl" | Mandatory | |
| assetId | number | Mandatory | Asset identifier |
| fileId | number | Mandatory | Asset file identifier |
| fileUrl | string | Mandatory | Encoded file URL |
| master | boolean | Optional | If left out, the file will not be set as the master file for that asset |
| presetId | number | Optional | If the file is already encoded with a specific preset |
{ "status":"ok", "message":"asset successfully updated", "assetId":"2222"} |
Delete an asset from the archive
Parameters:
| Name | Value | Requirement | Info |
|---|---|---|---|
| organizationId | number | Mandatory | Icareus Suite organization identifier |
| token | string | Mandatory | Secret key of the organization |
| action | "deleteAsset" | Mandatory | |
| assetId | number | Mandatory | Asset identifier |
{ "status":"ok", "message":"Successfully deleted asset"} |
NOTE: THIS CALL WILL ALSO UNPUBLISH THE ASSET FROM ALL DEVICES IT IS PUBLISHED TO
Name | Value | Requirement | Info |
organizationId | number | Mandatory | Icareus Suite organization identifier |
token | string | Mandatory | Secret key of the organization |
action | "getAllGroupsByType" | Mandatory | |
groupTypeId | number | Optional* | Group Type Id. Either groupTypeId or groupTypeName must be given. |
groupTypeName | string | Optional* | Group Type (folders, series) |
showHidden | boolean | Optional | If true will return also hidden groups |
getAssetCount | boolean | Optional | Will count the amount of assets in each group. Doesn't count assets in child groups. This value is shown with key "assetCount" |
languageId | String | Optional | fi_FI,en_US, en_UK ... |
Name | Value | Requirement | Info |
organizationId | number | Mandatory | Icareus Suite organization identifier |
token | string | Mandatory | Secret key of the organization |
action | "getAssets" | Mandatory | |
series | boolean | Optional | Asset will have series it belong in the result |
podcasts | boolean | Optional | Asset will have podcasts groups it belongs in the result |
groupItemId | string | Optional | List of group ID's separated by comma. Special: If you set this to "nogroups" this will fetch all the assets that doesn't belong to any of the groups. |
languageId | string | Optional | fi_FI,en_US, en_UK ... |
Name | Value | Requirement | Info |
action | getSubtitle | Mandatory | |
organizationId | number | Mandatory | Icareus Suite organization id |
token | string | Mandatory | Secret key of the organization |
userId | number | Mandatory | Icareus Suite user id. User must belong to Organization (with the exception of system admins) |
subtitleId | number | Mandatory | Id of the Subtitle Asset to get |
Name | Value | Requirement | Info |
action | getSubtitles | Mandatory | |
organizationId | number | Mandatory | Icareus Suite organization id |
token | string | Mandatory | Secret key of the organization |
userId | number | Mandatory | Icareus Suite user id. User must belong to organization. |
start | number | Optional | Starting index for getting subtitle assets. |
end | number | Optional | Ending index for getting subtitles. I.e. start=0&end=2 will fetch the first two subtitles. |
Name | Value | Requirement | Info |
action | saveSubtitle | Mandatory | |
organizationId | number | Mandatory | Icareus Suite Organization id |
token | string | Mandatory | Secret key of the organization |
userId | number | Mandatory | Icareus Suite User id. User must belong to Organization. |
title | string | Mandatory if creating new subtitle | Title of the subtitle asset. Only mandatory if creating a new subtitle. Otherwise optional. |
description | string | Optional | Description of the subtitle asset. |
assetId | number | Optional | Suite video asset id. If provided, the subtitle asset will be linked to this asset. |
subtitleId | number | Optional | If provided, the call will update the existing subtitle asset instead of creating a new one. |
Name | Value | Requirement | Info |
action | linkSubtitle | Mandatory | |
organizationId | number | Mandatory | Icareus Suite Organization id |
token | string | Mandatory | Secret key of the Organization |
userId | number | Mandatory | Icareus Suite userId. User must be part of the Organization. |
subtitleId | number | Mandatory | Id of the subtitle asset |
assetId | number | Mandatory | Id of the video asset |
Name | Value | Requirement | Info |
action | unlinkSubtitle | Mandatory | |
organizationId | number | Mandatory | Icareus Suite Organization id |
token | string | Mandatory | Secret key of the Organization |
userId | number | Mandatory | Icareus Suite userId. User must be part of Organization. |
subtitleId | number | Mandatory | Id of the subtitle asset |
assetId | number | Mandatory | Id of the video asset |

Name | Value | Requirement | Info |
action | addSubtitleFile | Mandatory | |
organizationId | number | Mandatory | Icareus Suite Organization ID |
token | string | Mandatory | Secret key of the Organization |
userId | number | Mandatory | Icareus Suite user id. User must be part of the Organization. |
subtitleId | number | Mandatory | Icareus Suite subtitle asset ID. |

Name | Value | Requirement | Info |
action | deleteSubtitle | Mandatory | |
organizationId | number | Mandatory | Icareus Suite Organization ID |
token | string | Mandatory | Secret key of the organization |
userId | number | Mandatory | Icareus Suite user id. User must belong to organization. |
subtitleId | number | Mandatory | Icareus Suite subtitle asset ID. (the subtitle asset to delete) |
This action allows you to upload a thumbnail image to an asset.
/api/archive
POSTName | Value | Requirement | Description |
action | updateAssetThumbnail | Mandatory | |
organizationId | Number | Mandatory | Icareus Suite Organization ID |
token | String | Mandatory | Secret key of the Organization. |
assetId | Number | Mandatory | ID of the asset you wish to add image files for. |
userId | Number | Mandatory | Icareus Suite User ID. |
In order to upload image and add them to the asset, the image file needs to be included in the request form-data.
assetImage: This image file will be set as the thumbnail image of the asset.
The response will always have the HTTP Status Code 200 (except in some cases where there is an internal server error, in these cases the status code can be 50x).
Successful response will contain "status": "ok" along with an "asset": {} object containing all the asset data (including updated image).
Unsuccessful response will contain "status": "error".
This action allows you to upload a cover image to an asset.
/api/archive
Method: POST
Parameters:
Name | Value | Requirement | Description |
action | updateAssetCover | Mandatory | |
organizationId | Number | Mandatory | Icareus Suite Organization ID |
token | String | Mandatory | Secret key of the Organization. |
assetId | Number | Mandatory | ID of the asset you wish to add image files for. |
userId | Number | Mandatory | Icareus Suite User ID. |
In order to upload image and add them to the asset, the image file needs to be included in the request form-data.
assetImage: This image file will be set as the cover image of the asset.
curl --location -XPOST 'https://suiterc.icareus.com/api/archive?action=updateAssetCover&organizationId=<ORGANIZATION-ID>&assetId=<ASSET-ID>&userId=<USER-ID>&token=<ORGANIZATION-SECRET>' \-H 'Content-Type: multipart/form-data' \-F 'assetImage=@"/path/to/image/thumbnail.jpg"'The response will always have the HTTP Status Code 200 (except in some cases where there is an internal server error, in these cases the status code can be 50x).
Successful response will contain "status": "ok" along with an "asset": {} object containing all the asset data (including updated image).
Unsuccessful response will contain "status": "error".
This action allows you to upload a banner image to an asset.
/api/archive
Method: POST
Parameters:
Name | Value | Requirement | Description |
action | updateAssetBanner | Mandatory | |
organizationId | Number | Mandatory | Icareus Suite Organization ID |
token | String | Mandatory | Secret key of the Organization. |
assetId | Number | Mandatory | ID of the asset you wish to add image files for. |
userId | Number | Mandatory | Icareus Suite User ID. |
In order to upload image and add them to the asset, the image file needs to be included in the request form-data.
assetImage: This image file will be set as the banner image of the asset.
The response will always have the HTTP Status Code 200 (except in some cases where there is an internal server error, in these cases the status code can be 50x).
Successful response will contain "status": "ok" along with an "asset": {} object containing all the asset data (including updated image).
Unsuccessful response will contain "status": "error".