You need the Manage Settings permission to manage Shifts.
LiveChat_Shift is represented as simple flat JSON objects with the following keys:
Name | Type | Description |
---|---|---|
id |
guid | Id of the shift. |
timeZone |
string | Time zone of the shift.Value includes all Time Zone Option identifiers. |
autoDetectDayLightSavingsTime |
bool | Whether auto detect Daylight Saving Time or not. |
name |
string | Name of the shift. |
shiftHolidays |
shiftHolidays[] | Reference to LiveChat_ShiftHoliday. |
shiftWorkingHours |
shiftWorkingHours[] | Reference to Shift Working Hours. |
departmentIds |
array | The list of the shift ids which the department belongs to. |
agentIds |
array | The list of the shift identifiers, which the agent belongs to. |
LiveChat_ShiftHoliday JSON Format:
Name | Type | Description |
---|---|---|
id |
guid | Id of the shift holiday. |
name |
string | Name of the shift holiday. |
holidayDate |
datetime | Date of the shift holiday. |
shiftId |
guid | Id of the shift. |
Shift Working Hours JSON Format:
Name | Type | Description |
---|---|---|
id |
guid | Id of the shift working hours. |
shiftId |
guid | Id of the shift. |
dayOfWeek |
string | Allowed values are "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday". |
startTime |
time | Start time of the shift working hours. |
endTime |
time | End time of the shift working hours. |
agentAwayStatusId |
guid | Id of the agent away status. |
GET livechat/shifts
Name | Type | In | Required | Description |
---|---|---|---|---|
include |
string | query | no | Allowed values are "agent", "department", "shiftHoliday", "shiftWorkingHours". |
An array of LiveChat_Shift
Sample Request:
Response:
HTTP/1.1 200 OK
GET livechat/shifts/{id}
Name | Type | In | Required | Description |
---|---|---|---|---|
include |
string | query | no | Allowed values are "agent", "department", "shiftHoliday", "shiftWorkingHours". |
Sample Request:
Response:
HTTP/1.1 200 OK
POST livechat/shifts
Name | Type | In | Required | Description |
---|---|---|---|---|
timeZone |
string | body | yes | Time zone of the shift.Value includes all Time Zone Option identifiers. |
autoDetectDayLightSavingsTime |
bool | body | no | Whether auto detect Daylight Saving Time or not. |
name |
string | body | yes | Name of the shift. |
shiftHolidays |
shiftHolidays[] | body | no | Reference to LiveChat_ShiftHoliday. |
shiftWorkingHours |
shiftWorkingHours[] | body | no | Reference to Shift Working Hours. |
departmentIds |
array | body | no | The list of the shift ids which the department belongs to. |
agentIds |
array | body | no | The list of the shift identifiers, which the agent belongs to. |
Sample Request:
Response:
HTTP/1.1 201 Created
PUT livechat/shifts/{id}
Name | Type | In | Required | Description |
---|---|---|---|---|
timeZone |
string | body | yes | Time zone of the shift.Value includes all Time Zone Option identifiers. |
autoDetectDayLightSavingsTime |
bool | body | no | Whether auto detect Daylight Saving Time or not. |
name |
string | body | yes | Name of the shift. |
shiftHolidays |
shiftHolidays[] | body | no | Reference to LiveChat_ShiftHoliday. |
shiftWorkingHours |
shiftWorkingHours[] | body | no | Reference to Shift Working Hours. |
departmentIds |
array | body | no | The list of the shift ids which the department belongs to. |
agentIds |
array | body | no | The list of the shift identifiers, which the agent belongs to. |
Sample Request:
Response:
HTTP/1.1 200 OK
DELETE livechat/shifts/{id}
No Content
Sample Request:
Response:
HTTP/1.1 204 No Content