Skip to main content

Schedule

By schedule control, you can implement time-based limitation for your content, ensuring content availability aligns with your scheduling requirements (e.g. specific timeframes or special campaigns).

To enable schedule control and define allowed access times for your VODs, configure the associated API request body during creation or update it later.

Configure the schedule request body with the following options:

Query ParametersDescription
enabledtrue
start_timeSpecify the time when the content will become available in ISO 8601 format:
YYYY-MM-DDTHH:MM:SSZ
end_timeSpecify the time when the content will no longer be available in ISO 8601 format:
YYYY-MM-DDTHH:MM:SSZ

Here is an example of a request body that schedules a video for playback from August 24th, 2023 at 2:15:22 PM UTC to August 31st, 2023 at 2:15:22 PM UTC:

"schedule":{
"enable":true,
"start_time":"2023-08-24T14:15:22Z",
"end_time":"2023-08-31T14:15:22Z"
}
caution

Before the scheduled start or end time is reached, you can edit them using the update API. However, after that point, they will become uneditable.

info

The time zone is automatically detected and set to the local time zone of the user's location. This means that if a user is located in a different time zone than the server, the start_time and end_time will be automatically adjusted to match the user's local time zone.