Content reprocessing allows you to insert ad breaks to an existing Uplynk asset. Specifically, open an asset; create, read, update, and delete ad breaks; and save as a new asset.
Request
Request syntax:
POST /assets/{asset_id}/reprocess
Define the following variable when submitting the above request:
Variable | Description |
---|---|
asset_id Required | The ID of the asset to reprocess. |
Request body:
Define a schedule entry through the following properties:
Name | Data Type | Description |
---|---|---|
insert_breaks Required | Integer | Array of new ad break offsets in milliseconds. |
preserve_breaks | Integer | Array of ad break indexes to keep. |
description | String | Title of the new asset. |
start_url | String | Webhook URL to ping when the job begins. |
done_url | String | Webhook URL to ping when the job completes. |
fail_url | String | Webhook URL to ping if the job fails. |
external_id | String | Sets the asset's External ID. |
Sample Request
{
"insert_breaks": [
10000,
20000
],
"preserve_breaks": [
0,
1
],
"description": "My new asset",
"start_url": "https://example.com",
"done_url": "https://example.com",
"fail_url": "https://example.com",
"external_id": "my unique value"
}