setPlaylistTagRule
const url = 'https://example.com/api/v1/playlists/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/tag-rule';const options = { method: 'PUT', headers: {'Content-Type': 'application/json'}, body: '{"enabled":true,"match":"any","imageDurationMs":1,"tagIds":["2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://example.com/api/v1/playlists/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/tag-rule \ --header 'Content-Type: application/json' \ --data '{ "enabled": true, "match": "any", "imageDurationMs": 1, "tagIds": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ] }'Set playlist tag rule. 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
Responses
Section titled “ Responses ”Playlist source and tag rule updated
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 tag rule