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.
Body
Required
-
Nom du type d'absence (ex. "Congés payés", "RTT", "Maladie")
-
État du type (inactive = masqué dans les choix)
Values are
activeorinactive. -
Icône Font Awesome ou autre (ex. "fa-umbrella-beach")
-
Couleur de fond hexadécimale (ex. "#3498db")
-
Couleur de fond en format RGB (ex. "52, 152, 219")
-
Couleur du texte hexadécimale (ex. "#ffffff")
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"
}
}