Description
Each resource is an absence request made by an employeeover a period. It is only possible to write requests in progress.
| URI | <uri_personne>/demandesAbsence |
|---|---|
| Category | http://schemas.holydis.com/tsq/2010#demande_absence |
| Editable | Yes |
Elements
| Element | Description | Writing |
|---|---|---|
| tsq:commentaireGest | Comment from the manager (in case of double workflow). | |
| tsq:commentaireResp | Comment from the supervisor. | |
| tsq:commentaireSalarie | Comment from the employee. | X |
| tsq:dateCreation | Date of creation of the request. | |
| tsq:dateModifGest | Date of modification of the request by the manager (in case of double workflow). | |
| tsq:dateModifResp | Date of modification of the request by the supervisor. | |
| tsq:etat | Status of the request. | |
| tsq:gestionnaire | Manager who modified the request. | |
| tsq:periode | Period of the requested absence. | X |
| tsq:plageHoraireAbsPartielle | Time slot of the requested partial absence. | |
| tsq:responsable | Supervisor who modified the request. | |
| tsq:typeAbsence | Type of the requested absence. | X |
| isAm | If it is a request for a half-day of absence, the type of half-day: morning (true) or afternoon (false). | X |
| tsq:timeZoneId | Time zone identifier. | |
| allJours | Indicates whether the request requires selecting every day (regardless of frequency). | |
| appliquePeriodicite | Indicates whether the request is made with a periodicity (true) or not (false). | |
| joursAppliqués | Days concerned by the periodicity (LUNDI for Monday, MARDI for Tuesday, MERCREDI for Wednesday, JEUDI for Thurday, VENDREDI for Friday, SAMEDI for Saturday, DIMANCHE for Sunday). |
Examples of requests
Reading
Read the absence requests for the employee whose identifier is 3050
GET /[URI_de_base]/api/feed/personnes/3050/demandesAbsence
Read the complete absence request in progress (on 11/01/2025) whose identifier is 42003 for the employee whose identifier is 3050
GET /[URI_de_base]/api/feed/personnes/3050/demandesAbsence/42003
Example of request XML results
Example of request JSON results
Read the complete absence request accepted (on 09/01/2025) whose identifier is 42002 for the employee whose identifier is 3050
GET /[URI_de_base]/api/feed/personnes/3050/demandesAbsence/42002
Example of request XML results
Example of request JSON results
Read the complete absence request refused (on 10/01/2025) whose identifier is 42001 for the employee whose identifier is 3050
GET /[URI_de_base]/api/feed/personnes/3050/demandesAbsence/42001
Example of request XML results
Example of request JSON results
Read the partial absence request in progress (on 17/01/2025 from 09:00 until 12:00) whose identifier is 41003 for the employee whose identifier is 3048
GET /[URI_de_base]/api/feed/personnes/3048/demandesAbsence/41003
Example of request XML results
Example of request JSON results
Read the request for a half-day absence in the morning (on 11/02/2026 in the morning) whose identifier is 181004 for the employee whose identifier is 3050
GET /[URI_de_base]/api/feed/personnes/3050/demandesAbsence/181004
Example of request XML results
Example of request JSON results
Read the request for a half-day absence in the afternoon (on 12/02/2026 in the afternoon) whose identifier is 181007 for the employee whose identifier is 3050
GET /[URI_de_base]/api/feed/personnes/3050/demandesAbsence/181007
Example of request XML results
Example of request JSON results
Read the complete absence request in progress (from 10/02/2025 until 12/02/2025) whose identifier is 41004 for the employee whose identifier is 3048
GET /[URI_de_base]/api/feed/personnes/3048/demandesAbsence/41004
Example of request XML results
Example of request JSON results
Read the complete absence request in progress with periodicity (from 16/12/2024 until 05/01/2025, all Wednesdays) whose identifier is 41003 for the employee whose identifier is 3048
GET /[URI_de_base]/api/feed/personnes/3048/demandesAbsence/41003
Example of request XML results
Example of request JSON results
Writing
Add a complete absence request for a day (on 11/01/2025) (in progress) for the employee whose identifier is 3050
POST /[URI_de_base]/api/feed/personnes/3050/demandesAbsence
Add a partial absence request for a day (on 17/01/2025 from 09:00 until 12:00) (in progress) for the employee whose identifier is 3050
GET /[URI_de_base]/api/feed/personnes/3048/demandesAbsence
Add a request for a half-day absence in the morning (on 13/02/2026 in the morning) for the employee whose identifier is 3050
POST /[URI_de_base]/api/feed/personnes/3050/demandesAbsence
Add a request for a half-day absence in the afternoon (on 13/02/2026 in the afternoon) for the employee whose identifier is 3050
POST /[URI_de_base]/api/feed/personnes/3050/demandesAbsence
Add a complete absence request for a period (from 10/02/2025 until 12/02/2025) (in progress) for the employee whose identifier is 3050
POST /[URI_de_base]/api/feed/personnes/3050/demandesAbsence
Add a complete absence request with periodicity (from 16/12/2024 until 05/01/2025, all Wednesdays) (in progress) for the employee whose identifier is 3050
POST /[URI_de_base]/api/feed/personnes/3050/demandesAbsence
Delete the absence request whose identifier is 42001 for the employee whose identifier is 3050
DELETE /[URI_de_base]/api/feed/personnes/3050/demandesAbsence/42001
Functional error messages
- Error 400 La demande est seulement masquée car celle-ci n'a pas été masquée par le responsable (et le gestionnaire dans le cas d'une gestion double)
- Error 400 Le salarié [NOM PRENOM] ne peut pas supprimer cette demande d'absence
- Error 400 Le salarié [NOM PRENOM] n'a pas le droit de faire une demande d'absence
- Error 400 La période n'est pas renseignée ou est invalide
- Error 400 Personne affectée à aucune structure sur la période demandée
- Error 400 Personne affectée à plusieurs structures sur la période demandée
- Error 400 La plage horaire renseignée est invalide
- Error 404 Introuvable : [COMPOSANT]
Comments
0 comments
Please sign in to leave a comment.