Skip to content

Get user working time

Request

Returns the working time slots of a user for the current week, grouped by day. Requires SITE_CALENDAR:READ.

Security
bearerAuth
Path
userIdintegerrequired

ID of the user (agent/collaborator) whose working time is requested.

Query
tzstring

IANA timezone used to express the slot hours/minutes. Defaults to UTC when omitted.

Example:tz=Europe/Paris
curl -i -X GET \
  'https://api-doc.immo-facile.com/_mock/openapi/calendar/users/{userId}/working-time?tz=Europe%2FParis' \
  -H 'Authorization: Bearer <YOUR_opaque_HERE>'

Responses

Working time grouped by day

Bodyapplication/json
dataobject(WorkingTimeResponse)

Working time slots grouped by day of week. Each day key (MO, TU, WE, TH, FR, SA, SU) holds the list of time ranges worked that day.

Response
{ "data": { "MO": [], "TU": [], "WE": [], "TH": [], "FR": [], "SA": [], "SU": [] } }