Announcement Schedules
Update an announcement schedule
PATCH
https://api.tunio.ai/ v1/ announcements/ schedules/ {schedule_id}Update a schedule's interval, its playback, or both. Only the fields sent change, but a sent playback object replaces the current one as a whole.
Path parameters
| Name | Type | Description |
|---|---|---|
| schedule_idRequired | string | Schedule ID |
Request body
Updated schedule data
| Name | Type | Description |
|---|---|---|
| interval | integer | New repeat period in minutes, at least 1. Omit it to keep the current interval. |
| playback | object | How the announcement goes on air. When sent, it replaces the schedule's playback as a whole (unsent duck/fade
values fall back to the defaults) and mode is required; duck, fade_down and fade_up apply to voiceover only.
Omit it to keep the current playback. |
| duck | number | Voice-over only: music level under the voice, 0..1 (0 mutes the music, 1 leaves it as is). Omit it for the
default, 0.2. |
| fade_down | number | Voice-over only: seconds the music takes to go down before the voice, 0..10. Omit it for the default, 0.8. |
| fade_up | number | Voice-over only: seconds the music takes to come back after the voice, 0..10. Omit it for the default, 1.5. |
| mode | string | Required whenever playback is sent. after_track waits for the song on air to end, cut interrupts the song,
voiceover reads the announcement over the song (needs a plan with advanced stream sound, otherwise it plays
after the song). |
Request example
01{02 "interval": 120,03 "playback": {04 "duck": 0.2,05 "fade_down": 0.8,06 "fade_up": 1.5,07 "mode": "voiceover"08 }09}
Responses
| Name | Type | Description |
|---|---|---|
| schedule | object | The updated schedule. |
| announcement | object | The scheduled announcement. |
| interval | integer | Repeat period in minutes. |
| playback | object | How the announcement goes on air; absent when the schedule uses the default after_track (plays between songs). |
| schedule_id | string | Schedule ID. |
| stream | object | The stream that plays the announcement. |
| success | boolean | Always true. |
| Name | Type | Description |
|---|---|---|
| message | string | Error code or human-readable error details. |
| success | boolean | Always false for error payloads. |
| Name | Type | Description |
|---|---|---|
| message | string | Error code or human-readable error details. |
| success | boolean | Always false for error payloads. |
| Name | Type | Description |
|---|---|---|
| message | string | Error code or human-readable error details. |
| success | boolean | Always false for error payloads. |
| Name | Type | Description |
|---|---|---|
| message | string | Error code or human-readable error details. |
| success | boolean | Always false for error payloads. |
| Name | Type | Description |
|---|---|---|
| message | string | Error code or human-readable error details. |
| success | boolean | Always false for error payloads. |