• FAQ
  • API
  • Members
  • Getting a list of users' non-working days via API: get_users_schedule

Getting a list of users' non-working days via API: get_users_schedule


Sample get_users_schedule request

?action=get_users_schedule
Returns users' dates of vacations, sick leaves, and weekend work days
*data is taken from the user's "Schedule" window

Optional parameters:
  • users — list of users separated by commas (for example: [email protected],120)
    User emails or their IDs are supported (available via get_users method)
  • datestart and dateend — searching data range in DD.MM.YYYY format (inclusive)

Returned data:
  • id — user ID
  • email — user email
  • name — user first and last name
  • group — team name
  • department — department name
  • schedule — list of non-working and additional working days:
  • vacation — vacation
    sick-leave — sick leave
    workday — works on a weekend

Sample JSON response
If the request succeeds, the response will contain ok status and the following data:

{
"status": "ok",
"data": { "USER_ID_1": {
"id": "USER_ID_1",
"email": "USER_EMAIL",
"name": "USER_NAME", "group": "USER_GROUP", "department": "USER_DEPARTMENT",
"schedule": { "2021-01-04": "vacation", "2021-03-13": "workday", "2021-10-15": "sick-leave", "2021-12-24": "vacation"
} }, "USER_ID_2": ... ... ...
}
}