Add an event to a schedule channel
This endpoint schedules content on a Cloud Playout schedule channel. Unlike a loop channel, which repeats its programs, a schedule channel plays what you place on its timeline at the time you place it. The id in the path is the channel’s ID.
How it works
-
Make a POST request to this endpoint with an
eventobject describing what to play and when it starts. -
What else you send depends on the
type:vodplays one media item. Send itsreferenceIdand leaveendTimeandnameout, because the event ends when the media does.playlistplays every item in a playlist back to back. Send the playlist’sreferenceIdand leaveendTimeandnameout.livereserves a slot for the channel’s live input. SendendTimeand aname, and leavereferenceIdout. The slot must be at least 5 minutes long.
-
The response returns the events that were created. A
playlistbecomes one event per item in it, laid end to end fromstartTime.
The event must sit inside the channel’s own start and end times, and it cannot overlap an event that is already scheduled. Media used by a vod event must have reached the ready status. On a channel that is on air, an event cannot be added if it would start or end in the next few minutes.
Example
A news channel schedules a recorded bulletin at 18:00, then reserves a live slot from 19:00 to 20:00 for a press conference.
Authentication
FastPix APIs are secured with Basic Authentication. Use your Access Token ID as the username and Secret Key as the password in the Authorization header of each API request.
- Username: Access Token ID
- Password: Secret Key
Activate your FastPix account to generate your API credentials. See the guide here