Create business hours

POST {{baseUrl}}/contact_center/business_hours

Create new business hours.

Scopes: contact_center_operating_hours:write:admincontact_center_queue:write:admin

Rate Limit Label: Light

Request Body

{"business_hour_name"=>"<string>", "business_hour_description"=>"<string>", "timezone"=>"<string>", "account_default"=>"<boolean>", "hours"=>{"hour_type"=>1, "custom_hours"=>[{"day_of_week"=>2, "custom_hour_type"=>2, "custom_hour_ranges"=>[{"start_time"=>"<string>", "end_time"=>"<string>"}, {"start_time"=>"<string>", "end_time"=>"<string>"}]}, {"day_of_week"=>6, "custom_hour_type"=>2, "custom_hour_ranges"=>[{"start_time"=>"<string>", "end_time"=>"<string>"}, {"start_time"=>"<string>", "end_time"=>"<string>"}]}]}}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: Created

{&quot;business_hour_id&quot;:&quot;\u003cstring\u003e&quot;,&quot;business_hour_name&quot;:&quot;\u003cstring\u003e&quot;,&quot;business_hour_description&quot;:&quot;\u003cstring\u003e&quot;,&quot;timezone&quot;:&quot;\u003cstring\u003e&quot;,&quot;account_default&quot;:&quot;\u003cboolean\u003e&quot;,&quot;hours&quot;:{&quot;hour_type&quot;:1,&quot;custom_hours&quot;:[{&quot;day_of_week&quot;:1,&quot;custom_hour_type&quot;:0,&quot;custom_hour_ranges&quot;:[{&quot;start_time&quot;:&quot;\u003cstring\u003e&quot;,&quot;end_time&quot;:&quot;\u003cstring\u003e&quot;},{&quot;start_time&quot;:&quot;\u003cstring\u003e&quot;,&quot;end_time&quot;:&quot;\u003cstring\u003e&quot;}]},{&quot;day_of_week&quot;:6,&quot;custom_hour_type&quot;:2,&quot;custom_hour_ranges&quot;:[{&quot;start_time&quot;:&quot;\u003cstring\u003e&quot;,&quot;end_time&quot;:&quot;\u003cstring\u003e&quot;},{&quot;start_time&quot;:&quot;\u003cstring\u003e&quot;,&quot;end_time&quot;:&quot;\u003cstring\u003e&quot;}]}]}}