Guides - Arbejdstid: Opret/ret/slet arbejdstid
Arbejdstid: Opret/ret/slet arbejdstid
Dette webhook kan benyttes til at sende data når arbejdstid oprettes, ændres og/eller slettes. Eksempel på JSON der kan sendes: |
Opret arbejdstid: |
{
"action": "createWorkHour",
"workHourId": [workHourId],
"calendarId": [calendarId],
"employeeId": [employeeId],
"workTypeId": [workTypeId],
"activeTime": [
[activeTime_BEGIN]{
"from": "[activeTimeFrom]",
"to": "[activeTimeTo]"
}[lineBreak]
[activeTime_END]],
"activeWeekdays": [
[activeWeekdays_BEGIN]"[activeWeekday]"[lineBreak]
[activeWeekdays_END]],
"customerGroupId": [customerGroupId],
"excludeWeekNumbers": [[excludeWeekNumbers_BEGIN][excludeWeekNumber][lineBreak][excludeWeekNumbers_END]],
"dateLimited": [dateLimited],
"dateLimitedFrom": "[dateLimitedFrom]",
"dateLimitedTo": "[dateLimitedTo]",
"bookCustomer": [bookCustomer],
"bookQuickbook": [bookQuickbook],
"priority": [priority]
}
Ret arbejdstid: |
{
"action": "updateWorkHour",
"workHourId": [workHourId],
"calendarId": [calendarId],
"employeeId": [employeeId],
"workTypeId": [workTypeId],
"activeTime": [
[activeTime_BEGIN]{
"from": "[activeTimeFrom]",
"to": "[activeTimeTo]"
}[lineBreak]
[activeTime_END]],
"activeWeekdays": [
[activeWeekdays_BEGIN]"[activeWeekday]"[lineBreak]
[activeWeekdays_END]],
"customerGroupId": [customerGroupId],
"excludeWeekNumbers": [[excludeWeekNumbers_BEGIN][excludeWeekNumber][lineBreak][excludeWeekNumbers_END]],
"dateLimited": [dateLimited],
"dateLimitedFrom": "[dateLimitedFrom]",
"dateLimitedTo": "[dateLimitedTo]",
"bookCustomer": [bookCustomer],
"bookQuickbook": [bookQuickbook],
"priority": [priority]
}
Slet arbejdstid: |
{
"action": "deleteWorkHour",
"workHourId": [workHourId]
}