View your libraries by clicking My Content from the Content tab.
Copies an asset 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
The asset copied to your account will be assigned a unique system-defined ID (i.e., GUID).
Request
Request syntax:
/jobs/copy-from-library
Request parameters:
Pass the following parameters through the msg parameter:
Name | Data Type | Description |
---|---|---|
asset_id Required | String | Identifies the asset that will be copied by its asset ID. This asset must reside in a library shared with your account. 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.
Response
The response for a successful request contains the following parameter.
Name | Data Type | Description |
---|---|---|
job | Dictionary | Describes a Cloud Slicer job. |
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/jobs/copy-from-library', asset_id='ae01164a50a04847b5624485aae1aac3'))
{
'job' : {
'state' : 'waiting',
'last_error' : '',
'args' : {},
'attempts' : 0,
'source' : {
'beam_id' : 'ae01164a50a04847b5624485aae1aac3'
},
'finished' : 0,
'asset' : None,
'last_start' : 0,
'owner' : 'a7231b9499a94e7a90e0438c6a136940',
'progress' : '',
'id' : 'a3b33c97e932443ea33bc44ab83abb33'
},
'error' : 0
}