Copy Asset API

Copy Asset API

This API allows copying an asset from one Organization to another.
Note that when this API is called, only the metadata of the asset is copied initially, and returned to the caller. The copying of the asset video files is initiated in the background, and it can take a moment before the copied asset becomes playable.

Authorization

This API call requires a token. The token should be provided in the headers as:
Authorization: Bearer <token>
The token should be a valid user token obtained via the Login API (the user should belong to the Organization from which the asset is being copied.)

API Path: /api/archive

NOTE: This API call should be made to either
https://my.icareus.com/api/archive
OR
https://api.icareus.com/api/admin/archive

Query Parameters

Name
Value
Requirement
Info
action
copyAsset
Mandatory

assetId
Number
Mandatory
The ID of the asset that is copied.
organizationTo
Number
Mandatory
The ID of the Organization, to which the asset should be copied to.


Response

A successful response will have the HTTP status code 200, will contain data in the following format:
  1. {
  2.   "status": "ok",
  3.   "asset": <asset-object>
  4. }
A failed response will have the HTTP status code 200, and will contain data in the following format:
  1. {
  2.   "status": "error",
  3.   "message": "what-went-wrong"
  4. }