Create holiday list
POST {{baseUrl}}/api/v1/holidayList
This API creates a holiday list in your help desk portal
OAuth Scope
Desk.settings.CREATE
Attributes
Attribute Name | Data Type | Description |
---|---|---|
name (required) | <String> | Name of the holiday list |
holidays (required) | <list> | Holidays to define in the list |
status (required) | <String> | Activation status of the holiday list. Values allowed are ACTIVE and INACTIVE |
associatedBusinessHourIds | <list> | IDs of the business hour sets associated with the holiday list |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string |
RESPONSES
status: OK
{"modifiedTime":"2018-12-10T10:36:53.136Z","associatedBusinessHours":[{"businessHourStatus":"ACTIVE","businessHourId":"4000000101003","businessHourName":"UK Day Shift"},{"businessHourStatus":"ACTIVE","businessHourId":"4000000101005","businessHourName":"Indian Night Shift"},{"businessHourStatus":"ACTIVE","businessHourId":"4000000103001","businessHourName":"UK Night Shift"}],"holidays":[{"from":"02-20","to":"02-21","holidayName":"Holiday1"},{"from":"03-26","to":"03-26","holidayName":"Holiday2"},{"from":"12-24","to":"12-25","holidayName":"Christmas Holidays"}],"createdBy":"4000000016079","name":"My Company Holidays","createdTime":"2018-12-10T10:36:53.136Z","modifiedBy":"4000000016079","id":"4000000191371","status":"ACTIVE"}