Get the day offs of a year. An administrator gets all the day offs. A manager gets the day offs of the persons of their projects. A supervisor gets the dates only, for the persons of their projects who share one of their departments. A supervisor without department gets all the persons of their projects. Other users get their own day offs.
GET
/data/persons/day-offs/{year}
curl \
--request GET '/api/data/persons/day-offs/2022' \
--header "Authorization: $API_KEY"
Response examples (200)
[
{}
]