Schedule Profiles

Apply a schedule profile to a stream

POST
https://api.tunio.ai/v1/schedule-profiles/{profile_id}/apply

Replaces the selected schedules on the target stream with the profile's. The chosen layers are fully replaced, not merged. Slots whose playlist or content no longer exists are skipped and reported instead of failing the request.

路径参数

名称类型说明
profile_idRequiredstringProfile ID

请求体

Target stream and layers to replace

名称类型说明
layersRequiredarray
Layers picks which schedules to replace: "music", "content", or both.
[item]Requiredstring
-
stream_idRequiredstring
StreamID is the stream whose schedule will be replaced.
请求示例
01{
02 "layers": [
03 "string"
04 ],
05 "stream_id": "string"
06}

响应

名称类型说明
applied_contentinteger
AppliedContent is the number of content slots written to the stream.
applied_musicinteger
AppliedMusic is the number of music slots written to the stream.
skippedarray
Skipped lists slots whose playlist or content no longer exists.
[item]Requiredobject
-
successboolean
Success indicates whether the profile was applied.
名称类型说明
messagestring
Message contains human readable error details.
successboolean
Success is always false for error payloads.
名称类型说明
messagestring
Message contains human readable error details.
successboolean
Success is always false for error payloads.
名称类型说明
messagestring
Message contains human readable error details.
successboolean
Success is always false for error payloads.
名称类型说明
messagestring
Message contains human readable error details.
successboolean
Success is always false for error payloads.
名称类型说明
messagestring
Message contains human readable error details.
successboolean
Success is always false for error payloads.