Delayed Notification Config

PUT {{baseUrl}}/v3/services/:serviceID/notification-delay-config

Update the Delayed Notfication Configuration for the service.
Requires access_token as a Bearer {{token}} in the Authorization header with service-write scope.

Note1: Weekday index in custom_timeslots and fixed_timeslot_config.repeat_days starts with 0 as Sunday and goes till 6 as Saturday.

Note2: If start_time is greater than the end_time, next day is condsidered for the end_time in the configuration, i.e today.start_time till next_day.end_time

Request Body

{"is_enabled"=>true, "timezone"=>"Asia/Kolkata", "fixed_timeslot_config"=>{"start_time"=>"09:00", "end_time"=>"08:00", "repeat_days"=>[0, 1, 2]}, "custom_timeslots_enabled"=>true, "custom_timeslots"=>{"3"=>[{"start_time"=>"09:00", "end_time"=>"18:00"}], "4"=>[{"start_time"=>"09:00", "end_time"=>"18:00"}]}, "assigned_to"=>{"id"=>"632a9ff0585f3e1fc98d5057", "type"=>"user | squad | escalationpolicy | default_escalation_policy"}}

RESPONSES

status: OK

{"data":{"id":"65bb297ff2df7e2ec661276c","name":"asfa1","slug":"asfa","email":"8bafc80e1f040b328e07092bc29232bd2241c04e@rbac-uat.incidents.squadcast.tech","escalation_policy_id":"65ba91f4f2df7e2ec65fc3dd","organization_id":"604592dabc35ea0008bb0584","api_key":"8bafc80e1f040b328e07092bc29232bd2241c04e","description":"","depends":null,"owner":{"id":"654dab338cef5f4865b9998b","type":"team"},"access_control":[],"maintainer":{"id":"632a9ff0585f3e1fc98d5057","type":"user"},"tags":[],"auto_pause_transient_alerts_config":{"is_enabled":false,"timeout_in_mins":0},"intelligent_alerts_grouping_config":{"is_enabled":false,"rolling_window_in_mins":0},"delay_notification_config":{"is_enabled":true,"timezone":"Asia/Kolkata","fixed_timeslot_config":{"start_time":"09:00","end_time":"08:00","repeat_days":[0,1,2]},"custom_timeslots_enabled":true,"custom_timeslots":{"3":[{"start_time":"09:00","end_time":"18:00"}],"4":[{"start_time":"09:00","end_time":"18:00"}]},"assigned_to":{"id":"632a9ff0585f3e1fc98d5057","type":"user"}},"config":{"dedup_key_enabled":true},"created_at":"2024-02-01T05:17:51.05Z","updated_at":"2024-06-05T13:48:19.463Z"}}