Create business hours set

POST {{baseUrl}}/api/v1/businessHours

This API creates a business hours set in your help desk portal

OAuth Scope

  • Desk.settings.CREATE

Attributes

Attribute NameData TypeDescription
name (required)<String>
Name of the business hours set
status (required)<String>
Activation status of the business hours set. Values allowed are ACTIVE and INACTIVE
type (required)<String>
Type of the business hours set. Values allowed are 24X7 (available anytime throughout the week), SPECIFIC (available during specific hours on the days selected),and CUSTOM (available during different hours on different days
holidayListId<long>
ID of the holiday list to associate with the business hours set
timeZoneId<string>
max chars : 100
ID of the time zone to associate with the business hours set
businessTimes<list>
Business hours for the week

HEADERS

KeyDatatypeRequiredDescription
Authorizationstring

RESPONSES

status: OK

{&quot;modifiedTime&quot;:&quot;2018-12-10T07:18:39.796Z&quot;,&quot;createdBy&quot;:&quot;4000000016079&quot;,&quot;associatedHolidayList&quot;:null,&quot;name&quot;:&quot;BusinssHour Pakistan Shift&quot;,&quot;businessTimes&quot;:[{&quot;startTime&quot;:&quot;10:00&quot;,&quot;endTime&quot;:&quot;16:00&quot;,&quot;day&quot;:&quot;MONDAY&quot;},{&quot;startTime&quot;:&quot;10:00&quot;,&quot;endTime&quot;:&quot;16:00&quot;,&quot;day&quot;:&quot;TUESDAY&quot;},{&quot;startTime&quot;:&quot;10:00&quot;,&quot;endTime&quot;:&quot;16:00&quot;,&quot;day&quot;:&quot;WEDNESDAY&quot;},{&quot;startTime&quot;:&quot;10:00&quot;,&quot;endTime&quot;:&quot;16:00&quot;,&quot;day&quot;:&quot;THURSDAY&quot;},{&quot;startTime&quot;:&quot;10:00&quot;,&quot;endTime&quot;:&quot;16:00&quot;,&quot;day&quot;:&quot;FRIDAY&quot;},{&quot;startTime&quot;:&quot;00:00&quot;,&quot;endTime&quot;:&quot;00:00&quot;,&quot;day&quot;:&quot;SATURDAY&quot;},{&quot;startTime&quot;:&quot;00:00&quot;,&quot;endTime&quot;:&quot;00:00&quot;,&quot;day&quot;:&quot;SUNDAY&quot;}],&quot;timeZone&quot;:{&quot;name&quot;:&quot;( GMT 5:00 ) Pakistan Time( PLT )&quot;,&quot;id&quot;:&quot;PLT&quot;},&quot;createdTime&quot;:&quot;2018-12-10T07:18:39.796Z&quot;,&quot;modifiedBy&quot;:&quot;4000000016079&quot;,&quot;id&quot;:&quot;4000000186010&quot;,&quot;type&quot;:&quot;SPECIFIC&quot;,&quot;status&quot;:&quot;ACTIVE&quot;}