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. }

    • Related Articles

    • Archive API

      INTRODUCTION 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 PATH /api/archive API CALLS ADD ASSET V.2 ...
    • Analytics API (ENG)

      INTRODUCTION This API stores video access/usage statistics for the linear channels and vod items. API PATH /api/analytics API METHODS ADDING NEW RECORD Adds a new analytics record of either on-demand video usage or linear channel viewing statistics ...
    • OEMBED API (ENG)

      INTRODUCTION This API is used to query for oEmbed objects for video page URL(s) on Icareus Suite sites. Note Suite oEmbed API only supports JSON responses for now API PATH /api/oembed API GET OEMBED OBJECT REQUEST /api/oembed Parameters: Name Value ...
    • Move Asset API

      Move Asset API This API allows moving an asset from one Organization to another. 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 ...
    • Teams API

      INTRODUCTION Teams API allows creating and editing Teams. AUTHENTICATION A suite user token obtained via the login API must be provided in the request headers as a bearer token. Authorization: Bearer <user-token> GET TEAMS Provides a way to get a ...