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.
Path parameters
| Name | Type | Description |
|---|---|---|
| profile_idRequired | string | Profile ID |
Request body
Target stream and layers to replace
| Name | Type | Description |
|---|---|---|
| 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. |
Request example
01{02 "layers": [03 "string"04 ],05 "stream_id": "string"06}
Responses
| Name | Type | Description |
|---|---|---|
| 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. |
| Name | Type | Description |
|---|---|---|
| message | string | Message contains human readable error details. |
| success | boolean | Success is always false for error payloads. |
| Name | Type | Description |
|---|---|---|
| message | string | Message contains human readable error details. |
| success | boolean | Success is always false for error payloads. |
| Name | Type | Description |
|---|---|---|
| message | string | Message contains human readable error details. |
| success | boolean | Success is always false for error payloads. |
| Name | Type | Description |
|---|---|---|
| message | string | Message contains human readable error details. |
| success | boolean | Success is always false for error payloads. |
| Name | Type | Description |
|---|---|---|
| message | string | Message contains human readable error details. |
| success | boolean | Success is always false for error payloads. |