v1

latestOpenAPI 3.1.0Apache 2.02026-07-22160175414.0 KB
UserDates

List UserDates.

Retrieve a list of UserDates.

Performance

In order to keep satisfactory response times and performance, please filter the request on a limited set of OwnerId[] and reduce the period date=between,{start},{end}.

As a rule of thumb, do not request for more than ~10 owners over a whole month.

Format

The date query parameter should match the form ?date=between,{start},{includedEnd}.

get/api/v3/userdates

Query parameters

ownerIdinteger[] required

User's identifiers.

datestring required
Example:between,2021-01-01,2021-02-01

The period over which working hours should be returned for given Users. Format: 'between,{start},{includedEnd}'.

fieldsstring[]

List of all fields to be returned by the server. Example: ?fields=ownerId,date,dtt,drt,draj, items[startsAt,duration,type,timeline

Response

OK

Example response

{
  "data": {
    "items": [
      {
        "dtt": "07:00:00",
        "drt": "04:15:00",
        "draj": "03:30:00",
        "am": {
          "dtt": "07:00:00",
          "drt": "04:15:00",
          "draj": "03:30:00"
        },
        "pm": {
          "dtt": "07:00:00",
          "drt": "04:15:00",
          "draj": "03:30:00"
        }
      }
    ]
  }
}