Schedule Profiles
Apply a schedule profile to a stream
POST
https://api.tunio.ai/v1/schedule-profiles/{profile_id}/applyReplaces 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_idRequired | string | Profile ID |
请求体
Target stream and layers to replace
| 名称 | 类型 | 说明 |
|---|---|---|
| layersRequired | array | Layers picks which schedules to replace: "music", "content", or both. |
| [item]Required | string | - |
| stream_idRequired | string | StreamID is the stream whose schedule will be replaced. |
请求示例
01{02 "layers": [03 "string"04 ],05 "stream_id": "string"06}
响应
| 名称 | 类型 | 说明 |
|---|---|---|
| applied_content | integer | AppliedContent is the number of content slots written to the stream. |
| applied_music | integer | AppliedMusic is the number of music slots written to the stream. |
| skipped | array | Skipped lists slots whose playlist or content no longer exists. |
| [item]Required | object | - |
| success | boolean | Success indicates whether the profile was applied. |
| 名称 | 类型 | 说明 |
|---|---|---|
| message | string | Message contains human readable error details. |
| success | boolean | Success is always false for error payloads. |
| 名称 | 类型 | 说明 |
|---|---|---|
| message | string | Message contains human readable error details. |
| success | boolean | Success is always false for error payloads. |
| 名称 | 类型 | 说明 |
|---|---|---|
| message | string | Message contains human readable error details. |
| success | boolean | Success is always false for error payloads. |
| 名称 | 类型 | 说明 |
|---|---|---|
| message | string | Message contains human readable error details. |
| success | boolean | Success is always false for error payloads. |
| 名称 | 类型 | 说明 |
|---|---|---|
| message | string | Message contains human readable error details. |
| success | boolean | Success is always false for error payloads. |