addPlaylistItem
const url = 'https://example.com/api/v1/playlists/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/items';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"assetId":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","layoutId":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","durationMs":1,"fitMode":"contain","transition":"none","audioEnabled":true,"volume":1,"videoStartOffsetMs":1,"videoEndOffsetMs":1,"deliveryPolicy":"download","usePlayerDefaults":false}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/v1/playlists/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/items \ --header 'Content-Type: application/json' \ --data '{ "assetId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "layoutId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "durationMs": 1, "fitMode": "contain", "transition": "none", "audioEnabled": true, "volume": 1, "videoStartOffsetMs": 1, "videoEndOffsetMs": 1, "deliveryPolicy": "download", "usePlayerDefaults": false }'Add playlist item. Requires an authenticated dashboard user.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”Header Parameters
Section titled “Header Parameters”Cookie-backed browser requests only, and only on unsafe methods. Bearer grants never send it.
Request Bodyrequired
Section titled “Request Bodyrequired”object
Published Layout to play fullscreen for durationMs
Resolve playback defaults from the effective Player configuration on Android and Linux at runtime.
object
Published Layout to play fullscreen for durationMs
Resolve playback defaults from the effective Player configuration on Android and Linux at runtime.
Responses
Section titled “ Responses ”Ready asset added transactionally
object
object
object
Fullscreen Layout played for durationMs
Media lifecycle status (uploading through deleted); draft when the item points at a Layout with no published revision.
object
Screens, schedules, and campaigns that play a playlist. Populated on the detail read only, and shaped like the Layout usage read so one panel renders both.
object
object
object
object
Compact visual metadata returned by playlist list requests.
Compact visual metadata returned with playlist list rows. Playback configuration is omitted; the playlist detail read stays the source of truth for it.
object
Data Sources reached through this playlist’s items. Only IDs; null on list rows and populated on the detail read only.
object
object
On the tag list, whether the caller may apply or remove this tag.
Example
{ "data": { "items": [ { "fitMode": "contain", "transition": "none", "deliveryPolicy": "download", "assetType": "image" } ], "previewItems": [ { "type": "image" } ], "sourceType": "static", "tagRule": { "match": "any" } }}Invalid or unavailable asset