Copy Assets

v2

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 RequiredListSpecifies one or more asset IDs from a shared library to be copied into your account. Each asset is identified by a unique asset ID (GUID). To find an asset ID: Go to the Content tab in the CMS library. Select the desired asset. Open the Details tab and locate the value labeled GUID - this is the asset ID.

Authentication

Pass a digital signature based off of msg.

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 API Auth for V2 APIs (see below), 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
}