# Get user working time

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

Endpoint: GET /calendar/users/{userId}/working-time
Version: 1.4.0
Security: bearerAuth

## Security:

  - `bearerAuth` (unknown)
    http bearer opaque

## Path parameters:

  - `userId` (integer, required)
    ID of the user (agent/collaborator) whose working time is requested.

## Query parameters:

  - `tz` (string)
    IANA timezone used to express the slot hours/minutes.
Defaults to UTC when omitted.

## Response 200:

  - `200` (unknown)
    Working time grouped by day

## Response 200 fields (application/json):

  - `data` (object)
    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.

  - `data.MO` (array)

  - `data.MO.start` (object)
    A time of day expressed as hours and minutes.

  - `data.MO.start.hours` (integer)
    Hour of the day (0-23).

  - `data.MO.start.minutes` (integer)
    Minutes (0-59).

  - `data.TU` (array)

  - `data.WE` (array)

  - `data.TH` (array)

  - `data.FR` (array)

  - `data.SA` (array)

  - `data.SU` (array)

## Response 401:

  - `401` (unknown)
    Authentication required

## Response 401 fields (application/json):

  - `error` (object)

  - `error.code` (string, required)

  - `error.message` (string, required)

## Response 403:

  - `403` (unknown)
    Insufficient permissions

## Response 403 fields (application/json):

  - `error` (object)

  - `error.code` (string, required)

  - `error.message` (string, required)

## Response 422:

  - `422` (unknown)
    Validation failed

## Response 422 fields (application/json):

  - `error` (object)

  - `error.code` (string)
    Enum: "VALIDATION_ERROR"

  - `error.message` (string)

  - `error.details` (array)

  - `error.details.field` (string)

  - `error.details.message` (string)

