Absence.io · JSON Structure

Reason Type Structure

An absence reason type (e.g., vacation, sick leave, parental leave).

Type: object Properties: 5
AbsencesEmployeesLeave ManagementHR

ReasonType is a JSON Structure definition published by Absence.io, describing 5 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

_id name color requiresApproval affectsAllowance

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/absence-io/refs/heads/main/json-structure/reason-type-structure.json",
  "name": "ReasonType",
  "description": "An absence reason type (e.g., vacation, sick leave, parental leave).",
  "type": "object",
  "properties": {
    "_id": {
      "type": "string",
      "description": "Unique identifier of the reason type.",
      "example": "500789"
    },
    "name": {
      "type": "string",
      "description": "Display name of the absence reason.",
      "example": "Vacation"
    },
    "color": {
      "type": "string",
      "description": "Color code for displaying this absence type in the calendar.",
      "example": "#4CAF50"
    },
    "requiresApproval": {
      "type": "boolean",
      "description": "Whether absences of this type require manager approval.",
      "example": true
    },
    "affectsAllowance": {
      "type": "boolean",
      "description": "Whether absences of this type count against the employee's allowance.",
      "example": true
    }
  }
}