schedules
Create a schedule
This operation creates a schedule.
post/schedules
Request body
Example request
{
"schedule": {
"action_type": "start_stop",
"name": "Scheduled start for my camera",
"recurrence_type": "recur",
"time_zone": "America/New_York",
"transcoder_id": "km1FSSVL",
"end_repeat": "2020-02-29T00:00:00.000Z",
"recurrence_data": "monday,tuesday,wednesday,thursday,friday",
"start_repeat": "2020-02-01T00:00:00.000Z",
"start_transcoder": "2020-02-01T00:00:00.000Z",
"stop_transcoder": "2020-02-29T23:59:59.999Z"
}
}Response
Success
Example response
{
"schedule": {
"id": "28bwb5WT",
"state": "disabled",
"name": "Scheduled recurring start for my camera",
"time_zone": "America/New_York",
"transcoder_id": "VGB21JFJ",
"transcoder_name": "My Camera",
"recurrence_type": "recur",
"recurrence_data": "monday,tuesday,wednesday,thursday,friday",
"action_type": "start_stop",
"start_transcoder": "2020-02-01T00:00:00.000Z",
"stop_transcoder": "2020-02-29T23:59:59.999Z",
"start_repeat": "2020-02-01T00:00:00.000Z",
"end_repeat": "2020-02-29T00:00:00.000Z",
"created_at": "2020-01-29T17:16:21.995Z",
"updated_at": "2020-01-31T07:00:48.995Z"
}
}