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.

路径参数

名称类型说明
schedule_idRequiredstringSchedule ID

请求体

Updated schedule data

名称类型说明
intervalinteger
New repeat period in minutes, at least 1. Omit it to keep the current interval.
playbackobject
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.
ducknumber
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_downnumber
Voice-over only: seconds the music takes to go down before the voice, 0..10. Omit it for the default, 0.8.
fade_upnumber
Voice-over only: seconds the music takes to come back after the voice, 0..10. Omit it for the default, 1.5.
modestring
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).
请求示例
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}

响应

名称类型说明
scheduleobject
The updated schedule.
announcementobject
The scheduled announcement.
intervalinteger
Repeat period in minutes.
playbackobject
How the announcement goes on air; absent when the schedule uses the default after_track (plays between songs).
schedule_idstring
Schedule ID.
streamobject
The stream that plays the announcement.
successboolean
Always true.
名称类型说明
messagestring
Error code or human-readable error details.
successboolean
Always false for error payloads.
名称类型说明
messagestring
Error code or human-readable error details.
successboolean
Always false for error payloads.
名称类型说明
messagestring
Error code or human-readable error details.
successboolean
Always false for error payloads.
名称类型说明
messagestring
Error code or human-readable error details.
successboolean
Always false for error payloads.
名称类型说明
messagestring
Error code or human-readable error details.
successboolean
Always false for error payloads.