Copy Assets

View your libraries by clicking My Content from the Content tab.

Copies one or more assets from a library shared with your account to your CMS library. The following data will be copied from the original asset:

  • Audio/video content
  • Asset name
  • Poster image
  • Metadata
  • Ad breaks
  • Allowed domains
  • Whether it requires a signed playback URL

Each asset copied to your account will be assigned a unique system-defined ID (i.e., GUID).

Request

Request syntax:

/batch/copy-from-library

Request parameters:

Pass the following parameters through the msg parameter:

NameData TypeDescription
asset_ids RequiredListIdentifies one or more assets in a shared library that will be copied to your account. Each asset is identified by its asset IDThis unique ID identifies an asset. View this ID by navigating to the Content tab, selecting the desired asset, and then viewing the GUID option from the Details tab.. ClosedWhere can I find an asset ID? 1. Navigate to the CMS library by clicking the Content tab. 2. Select the desired asset. 3. The asset ID corresponding to the asset selected in the previous step is listed under the GUID label.

Authentication

Pass a digital signature based off of msg.

Learn more.

Response

The response for a successful request contains the following parameters.

NameData TypeDescription
batch_idStringIdentifies the batch job by its system-defined ID. Pass this ID to the Get Batch Copy Status endpoint to find out the status of the batch copy job.
errorIntegerIndicates whether an error occurred.

Sample Request/Response

A sample request/response is provided below. The Call() function, which is imported from uplynk_api2_auth module, prepares the message body and digital signature.

from uplynk_api2_auth import Call

print(Call('/api2/cloudslicer/batch/copy-from-library', asset_ids=['d0c403730ca14575a92f337ef71e0c5a',
'30d0013d33d54b7c9354a339bfdc743c']))

{
	'batch_id' : '63a304b482284968be49571adb6db661',
	'error' : 0
}