Update On-call Event

PUT {{baseUrl}}/schedules/:schedulesID/events/:eventID

This endpoint is used to update the on-call rotation(event) for the schedule. Requires access_token as a Bearer {{token}} in the Authorization header with schedule-write scope.

Update Type value representations: ``` update_type:

1 - Update the current single event 2 - Update the current event and all the following events ```

Representation of Weekly Repetition: 0 - Sunday 1 - Monday 2 - Tuesday 3 - Wednesday 4 - Thursday 5 - Friday 6 - Saturday

Request Body

{"name"=>"SRE shift 1", "update_type"=>1, "start_time"=>"2020-01-10T18:30:00.000Z", "end_time"=>"2020-01-10T18:30:00.000Z", "rotation_sets"=>[{"user_ids"=>["5d81d9187000fb6b9def7e31"], "squad_ids"=>[]}, {"user_ids"=>["5d90cc3a4d031497494f07e6"], "squad_ids"=>[]}], "config"=>{"timezone"=>{"name"=>"IST", "offset"=>-330}, "is_forever"=>true, "until"=>"2020-01-09T14:38:06.658Z", "rotate"=>true, "repeat"=>true, "rotation_frequency"=>1, "repetition"=>{"frequency"=>1, "repeats_on"=>[0, 6], "type"=>"week"}}}

RESPONSES

status: OK

{"data":{"id":"620baee54ec9cda09057fa44","calendar_id":"000000000000000000000000","start_time":"2022-02-16T18:30:00Z","end_time":"2022-03-11T18:30:00Z","name":"SRE shift 1","user_ids":["60f12dd3814bef0008c4036e"],"series_id":"620baee54ec9cda09057fa43","squad_ids":[],"is_override":false,"schedule_id":"620b96794ec9cda09057f88e","calendar":{"id":"620b96794ec9cda09057f88e","name":"schedule2","slug":"schedule2"}}}