...
The userId
or emailAddress
can be used but ; at least one is required.
The date
is optional and used to find the user's status for a future day, ; if not included then the current date should be used.
The start
& end
are optional and used to get a user's status based on a specific time frame, ; if not included the status should be returned based on the current time.
...
If the user has a booking during the requested time frame then information about that booking should also be returned.
The WorkingLocation
should be returned based on the requested time frame.WorkingLocationSchedule
should also be included which is the default weekly schedule the user has defined.
Example
Code Block | ||
---|---|---|
| ||
{ "userId": 13, "EmailAddress": "charlotte.hill@email.com", "date": "yyyy/MM/DD", "startTime": "HH:mm", "endTime": "HH:mm" "Status": "available", // available, busy, do not disturb, away, offline "WorkingLocation": "Office", "WorkingLocatingSchedule": { "Monday": [ {"start": "09:00", "end": "17:00", "Location": "Office"} ], "Tuesday": [ {"start": "09:00", "end": "17:00", "Location": "Office"} ], "Wednesday": [ {"start": "09:00", "end": "17:00", "Location": "Office"} ], "Thursday": [ {"start": "09:00", "end": "17:00", "Location": "Office"} ], "Friday": [ {"start": "09:00", "end": "17:00", "Location": "Home"} ], "Saturday": [], "Sunday": [], } "ActiveBooking": xxxx, // if in a booking include booking ID } |