{
 "openapi": "3.1.0",
 "info": {
  "title": "Who Is Off (HRMS)",
  "version": "20261030b",
  "description": "Booked and requested absence, for a manager looking at cover."
 },
 "servers": [
  {
   "url": "https://{tenant}.tranxact.ai",
   "variables": {
    "tenant": {
     "default": "demo"
    }
   }
  }
 ],
 "components": {
  "securitySchemes": {
   "bearer": {
    "type": "http",
    "scheme": "bearer"
   }
  },
  "schemas": {
   "absence-calendar": {
    "type": "object",
    "required": [],
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "description": "Id",
      "readOnly": true
     },
     "org_id": {
      "type": "string",
      "format": "uuid",
      "description": "Org id",
      "readOnly": true
     },
     "employee_id": {
      "type": "string",
      "format": "uuid",
      "description": "Employee id",
      "readOnly": true
     },
     "employee_no": {
      "type": "string",
      "description": "Employee no",
      "readOnly": true
     },
     "employee_name": {
      "type": "string",
      "description": "Employee name",
      "readOnly": true
     },
     "manager_id": {
      "type": "string",
      "format": "uuid",
      "description": "Manager id",
      "readOnly": true
     },
     "leave_code": {
      "type": "string",
      "description": "Leave code",
      "readOnly": true
     },
     "leave_name": {
      "type": "string",
      "description": "Leave name",
      "readOnly": true
     },
     "category": {
      "type": "string",
      "description": "Category",
      "readOnly": true
     },
     "start_date": {
      "type": "string",
      "format": "date",
      "description": "Start date",
      "readOnly": true
     },
     "end_date": {
      "type": "string",
      "format": "date",
      "description": "End date",
      "readOnly": true
     },
     "days": {
      "type": "string",
      "format": "decimal",
      "description": "Days",
      "readOnly": true
     },
     "working_days": {
      "type": "string",
      "format": "decimal",
      "description": "Working days",
      "readOnly": true
     },
     "status": {
      "type": "string",
      "description": "Status",
      "readOnly": true
     },
     "department": {
      "type": "string",
      "description": "Department",
      "readOnly": true
     },
     "off_today": {
      "type": "boolean",
      "description": "Off today",
      "readOnly": true
     }
    }
   }
  }
 },
 "security": [
  {
   "bearer": []
  }
 ],
 "paths": {
  "/api/hrms/absence-calendar": {
   "get": {
    "summary": "list absence-calendar",
    "operationId": "list_absence_calendar_0_4",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "post": {
    "summary": "Post who is off",
    "operationId": "action_absence_calendar_1_4",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/hrms/absence-calendar/{id}": {
   "get": {
    "summary": "get absence-calendar",
    "operationId": "get_absence_calendar_0_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "put": {
    "summary": "Put who is off",
    "operationId": "action_absence_calendar_1_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "delete": {
    "summary": "Delete who is off",
    "operationId": "action_absence_calendar_2_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/hrms/absence-calendar/{id}/copy": {
   "post": {
    "summary": "Copy",
    "operationId": "action_absence_calendar_0_6",
    "description": "Body keys: overrides, preview, withLines",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  }
 }
}