GET /absence/{uid}

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

Path parameters

  • uid string Required

    Identifiant unique de l'absence

Query parameters

  • populate string

    Relations à inclure (ex. "type", "positionTo", "userTo")

Responses

  • 200 application/json

    Détails de l'absence

    Hide response attribute Show response attribute object
    • absence object
      Hide absence attributes Show absence attributes object
      • _id string

        Unique identifier for the absence

      • company string

        Reference to the company

      • decision_date string(date-time)

        Date when the state was changed

      • from string(date-time)

        Start date of the absence

      • from_moment string

        Moment of the day when the absence starts

        Values are half-am, half-pm, or full.

      • logs array[object]

        List of logs for the absence

        Hide logs attributes Show logs attributes object
        • position string

          Reference to the position

        • date string(date-time)

          Date of the log

        • method string

          HTTP method used

        • state string

          State of the absence at the time of the log

        • stateItemRequested string

          State of the item requested

        • comment string

          Comment added to the log

        • file string

          File attached to the log

        • fileInSafe boolean

          Whether the file is stored in the safe

          Default value is false.

        • stateLog string

          State of the log

          Values are active or inactive. Default value is active.

      • period string

        Period type of the absence

        Values are period, full, or half.

      • positionDecider string

        Reference to the position that made the decision

      • positionFrom string

        Reference to the position that created the absence

      • positionTo string

        Reference to the position for which the absence is created

      • positionLastName string

        Last name of the position for search purposes

      • positionFirstName string

        First name of the position for search purposes

      • state string

        State of the absence

        Values are waiting, accepted, rejected, canceled, or inactive. Default value is waiting.

      • nbDays number

        Number of days of absence

        Default value is 0.

      • to string(date-time)

        End date of the absence

      • to_moment string

        Moment of the day when the absence ends

        Values are half-am, half-pm, or full.

      • timezone string

        Timezone for the absence dates

      • type string

        Reference to the absence type

      • userTo string

        Reference to the user for which the absence is created

      • createdAt string(date-time)

        Date when the absence was created

      • updatedAt string(date-time)

        Date when the absence was last updated

  • 404

    Absence non trouvée

  • 403

    Non autorisé - Accès à cette absence refusé

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"
  }
}