PATCH /absence-type/{uid}

Met à jour les informations d'un type d'absence existant.

Vous pouvez modifier :

  • Le nom affiché
  • L'icône représentative
  • Les couleurs (fond et texte) pour la visualisation calendrier
  • L'état (active/inactive) pour masquer sans supprimer

Note : Désactiver un type n'affecte pas les absences déjà créées avec ce type.

Path parameters

  • uid string Required

    Identifiant unique du type d'absence

application/json

Body Required

  • name string

    Nom du type d'absence (ex. "Congés payés", "RTT", "Maladie")

  • state string

    État du type (inactive = masqué dans les choix)

    Values are active or inactive.

  • icon string

    Icône Font Awesome ou autre (ex. "fa-umbrella-beach")

  • backgroundColor string

    Couleur de fond hexadécimale (ex. "#3498db")

  • backgroundColorRgb string

    Couleur de fond en format RGB (ex. "52, 152, 219")

  • color string

    Couleur du texte hexadécimale (ex. "#ffffff")

Responses

  • 200 application/json

    Type d'absence mis à jour avec succès

    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.

  • 400

    Requête invalide - Données incorrectes

  • 404

    Type d'absence non trouvé

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