Récupère les informations détaillées d'une absence spécifique.
Les informations incluent :
- Les dates et moments (matin/après-midi/journée entière)
- Le type d'absence
- L'état actuel (en attente, validée, refusée, etc.)
- L'historique complet des actions (logs)
- Le collaborateur et son poste concernés
GET
/absence/{uid}
curl \
--request GET 'https://wuro.pro/api/v3.2/absence/{uid}' \
--header "X-APP-ID: $API_KEY" \
--header "X-APP-SECRET: $API_KEY"
Response examples (200)
{
"absence": {
"_id": "string",
"company": "string",
"decision_date": "2025-05-04T09:42:00Z",
"from": "2025-05-04T09:42:00Z",
"from_moment": "half-am",
"logs": [
{
"position": "string",
"date": "2025-05-04T09:42:00Z",
"method": "string",
"state": "string",
"stateItemRequested": "string",
"comment": "string",
"file": "string",
"fileInSafe": false,
"stateLog": "active"
}
],
"period": "period",
"positionDecider": "string",
"positionFrom": "string",
"positionTo": "string",
"positionLastName": "string",
"positionFirstName": "string",
"state": "waiting",
"nbDays": 0,
"to": "2025-05-04T09:42:00Z",
"to_moment": "half-am",
"timezone": "string",
"type": "string",
"userTo": "string",
"createdAt": "2025-05-04T09:42:00Z",
"updatedAt": "2025-05-04T09:42:00Z"
}
}