GET /absence-type/{uid}

Récupère les informations détaillées d'un type d'absence spécifique par son identifiant.

Les informations incluent le nom, l'icône, les couleurs d'affichage et la catégorie (absence ou event).

Path parameters

  • uid string Required

    Identifiant unique du type d'absence

Responses

  • 200 application/json

    Détails du type d'absence

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

        Unique identifier for the absence type

      • name string

        Name of the absence type

      • state string

        State of the absence type

        Values are active or inactive. Default value is active.

      • type string

        Type of the absence type

        Values are absence or event. Default value is absence.

      • icon string

        Icon for the absence type

      • backgroundColor string

        Background color for the absence type

        Default value is #D1D1D1.

      • backgroundColorRgb string

        Background color in RGB format

      • color string

        Text color for the absence type

        Default value is #000.

  • 404

    Type d'absence non trouvé

GET /absence-type/{uid}
curl \
 --request GET 'https://wuro.pro/api/v3.2/absence-type/{uid}' \
 --header "X-APP-ID: $API_KEY" \
 --header "X-APP-SECRET: $API_KEY"
Response examples (200)
{
  "absenceType": {
    "_id": "string",
    "name": "string",
    "state": "active",
    "type": "absence",
    "icon": "string",
    "backgroundColor": "#D1D1D1",
    "backgroundColorRgb": "string",
    "color": "#000"
  }
}