update_ad_break
Update an existing ad break on an asset.
update_ad_break
Update an existing ad break on an asset.
Safety class: A · API type: admin · Min version: —
Confinementasset_id must be within your run-root anchor.
Signatures
def update_ad_break(sdk, asset_id, ad_break_id, time_code=None):
"""Update an ad break's timecode on asset_id; return the updated ad break."""
return sdk.update_asset_ad_break(asset_id, ad_break_id, time_code)export async function updateAdBreak(sdk, assetId, adBreakId, timeCode = null) {
// Update an ad break's timecode on assetId.
return await sdk.updateAssetAdBreak(assetId, adBreakId, timeCode);
}Parameters
| Parameter (Python) | Parameter (JS) | Type | Required | Notes |
|---|---|---|---|---|
sdk | sdk | Nomad_SDK | yes | |
asset_id | assetId | str | yes | e.g. <asset-uuid> |
ad_break_id | adBreakId | str | yes | e.g. <ad-break-uuid> |
time_code | timeCode | str | null | no | e.g. 00:00:02;00 |
Returns
dict | None — the updated ad break. None on failure.
Errors
- 401 unauthenticated
- 404 asset or ad break not found
See also: Python ↔ JS naming map · Return shapes.
