...
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
[{ "endDate": "2018-12-31", "endDateDate": 1546214400000, "firstWeek": false, "fourthWeek": false, "fri": false, "lastWeek": false, "mon": false, "objects": [{ "days": [{ "checked": false, "times": [{ "active": true, "endTime": 1700, "endTimeObj": "2018-08-20 17:00:00", "roomNumber": null, "startTime": 1600, "startTimeObj": "2018-08-20 16:00:00", "workScheduleId": 1420758 }], "workday": 1 }], "locationId": 81353, "locationName": "Downtown Office", "objecttype": "PROFESSIONAL", "professionalId": 80891, "professionalName": "Mr. Biscuits", "reasonId": null, "reasonName": null, "resourceId": null, "resourceName": null }], "recurring": false, "repeatInterval": null, "repeatSchedule": null, "sat": false, "secondWeek": false, "startDate": "2018-08-20", "startDateDate": 1534723200000, "sun": false, "thirdWeek": false, "thu": false, "tue": false, "wed": false }, { "endDate": "2019-05-17", "endDateDate": 1546300800000, "firstWeek": false, "fourthWeek": false, "fri": false, "lastWeek": false, "mon": false, "objects": [{ "days": [{ "checked": false, "times": [{ "active": true, "endTime": 1700, "endTimeObj": "2018-08-20 17:00:00", "startTime": 1600, "startTimeObj": "2018-08-20 16:00:00", "workScheduleId": 1420762 }], "workday": 1 }], "locationId": 81353, "locationName": "Downtown Office", "objecttype": "PROFESSIONAL", "professionalId": 80891, "professionalName": "Mr. Biscuits", "reasonId": null, "reasonName": null, "resourceId": null, "resourceName": null }], "recurring": false, "repeatInterval": null, "repeatSchedule": null, "sat": false, "secondWeek": false, "startDate": "2019-01-01", "startDateDate": 1546300800000, "sun": false, "thirdWeek": false, "thu": false, "tue": false, "wed": false }] |
Example 6:
How to add a staff member to the service availability for a location
...
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
[{ "endDate": "2018-06-14", "endDateDate": 1528934400000, "firstWeek": false, "fourthWeek": false, "fri": false, "lastWeek": false, "mon": false, "objects": [{ "days": [{ "checked": false, "times": [{ "active": true, "endTime": 1200, "endTimeObj": "2018-06-14 12:00:00", "startTime": 1000, "startTimeObj": "2018-06-14 10:00:00", "workScheduleId": 1389497 }], "workday": 4 }], "locationId": 81129, "locationName": "Beach Office", "objecttype": "PROFESSIONAL", "professionalId": 82275, "professionalName": "Master J", "reasonId": null, "reasonName": null, "resourceId": null, "resourceName": null }], "recurring": false, "repeatInterval": null, "repeatSchedule": null, "sat": false, "secondWeek": false, "startDate": "2018-06-14", "startDateDate": 1528934400000, "sun": false, "thirdWeek": false, "thu": false, "tue": false, "wed": false }] |
Next we show the request payload of the POST call that is made to add the staff member.
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
[{ "endDate": "2018-06-14", "endDateDate": 1528934400000, "firstWeek": false, "fourthWeek": false, "fri": false, "inEditableRange": false, "lastWeek": false, "lessThanOneWeek": true, "mon": false, "objects": [{ "days": [{ "checked": false, "times": [{ "active": true, "endTime": 1200, "endTimeObj": "2018-06-14 12:00:00", "startTime": 1000, "startTimeObj": "2018-06-14 10:00:00", "workScheduleId": 1389497 }], "workday": 4 }], "locationId": 81129, "locationName": "Beach Office", "objecttype": "PROFESSIONAL", "professionalId": 82275, "professionalName": "Master J", "reasonId": null, "reasonName": null, "resourceId": null, "resourceName": null }, { "days": [{ "checked": false, "times": [{ "active": true, "endTime": 1900, "endTimeObj": "2018-06-14 19:00:00", "startTime": 1800, "startTimeObj": "2018-06-14 18:00:00", }], "workday": 4 }], "locationId": 81129, "locationName": "Beach Office", "objecttype": "PROFESSIONAL", "professionalId": 81988, "professionalName": "Dr. J", "reasonId": null, "reasonName": null, "resourceId": null, "resourceName": null }], "recurring": false, "repeatInterval": null, "repeatSchedule": null, "resumeBreakTimeAfterBreakStarts": false, "sat": false, "secondWeek": false, "startDate": "2018-06-14", "startDateDate": 1528934400000, "startTimeAfterEndTime": false, "sun": false, "thirdWeek": false, "thu": false, "tue": false, "wed": false }] |
Finally we show the period object that gets returned on all subsequent GET calls.
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
[{ "endDate": "2018-06-14", "endDateDate": 1528934400000, "firstWeek": false, "fourthWeek": false, "fri": false, "lastWeek": false, "mon": false, "objects": [{ "days": [{ "checked": false, "times": [{ "active": true, "endTime": 1200, "endTimeObj": "2018-06-14 12:00:00", "startTime": 1000, "startTimeObj": "2018-06-14 10:00:00", "workScheduleId": 1389497 }], "workday": 4 }], "locationId": 81129, "locationName": "Beach Office", "objecttype": "PROFESSIONAL", "professionalId": 82275, "professionalName": "Master J", "reasonId": null, "reasonName": null, "resourceId": null, "resourceName": null }, { "days": [{ "checked": false, "times": [{ "active": true, "endTime": 1900, "endTimeObj": "2018-06-14 19:00:00", "startTime": 1800, "startTimeObj": "2018-06-14 18:00:00", "workScheduleId": 1416875 }], "workday": 4 }], "locationId": 81129, "locationName": "Beach Office", "objecttype": "PROFESSIONAL", "professionalId": 81988, "professionalName": "Dr. J", "reasonId": null, "reasonName": null, "resourceId": null, "resourceName": null }], "recurring": false, "repeatInterval": null, "repeatSchedule": null, "sat": false, "secondWeek": false, "startDate": "2018-06-14", "startDateDate": 1528934400000, "sun": false, "thirdWeek": false, "thu": false, "tue": false, "wed": false }] |
Example 7:
How to remove the working hours of service availability for one staff person at one location from one date
...