DELETE /absence-type/{uid}

Supprime un type d'absence.

Attention : Cette action est définitive. Pour masquer un type sans le supprimer, utilisez plutôt PATCH avec state: "inactive".

La suppression peut échouer si des absences sont liées à ce type.

Path parameters

  • uid string Required

    Identifiant unique du type d'absence

Responses

  • 200 application/json

    Type d'absence supprimé

    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é

DELETE /absence-type/{uid}
curl \
 --request DELETE '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"
  }
}