{
 "openapi": "3.1.0",
 "info": {
  "title": "FMLA Settings (HRMS)",
  "version": "20261030b",
  "description": "How this company applies FMLA: the entitlement, the 12-month method (one for everybody), whether paid leave runs at the same time, the eligibility rule, and whether the worksite has 50 employees within 75 miles."
 },
 "servers": [
  {
   "url": "https://{tenant}.tranxact.ai",
   "variables": {
    "tenant": {
     "default": "demo"
    }
   }
  }
 ],
 "components": {
  "securitySchemes": {
   "bearer": {
    "type": "http",
    "scheme": "bearer"
   }
  },
  "schemas": {
   "fmla-settings": {
    "type": "object",
    "required": [],
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "description": "Id",
      "readOnly": true
     },
     "org_id": {
      "type": "string",
      "format": "uuid",
      "description": "Org id",
      "readOnly": true
     },
     "org_unit_id": {
      "type": "string",
      "format": "uuid",
      "description": "Org unit id",
      "readOnly": true
     },
     "entitlement_weeks": {
      "type": "string",
      "format": "decimal",
      "description": "Entitlement (weeks)"
     },
     "caregiver_weeks": {
      "type": "string",
      "format": "decimal",
      "description": "Military caregiver entitlement (weeks)"
     },
     "year_method": {
      "type": "string",
      "description": "12-month method",
      "enum": [
       "Calendar year",
       "A fixed leave year",
       "12 months forward from the first day of FMLA leave",
       "12 months back from each day of leave"
      ]
     },
     "fixed_year_start": {
      "type": "string",
      "description": "Leave year starts (MM-DD)"
     },
     "concurrent_paid_leave": {
      "type": "boolean",
      "description": "Paid leave runs at the same time as FMLA leave"
     },
     "min_service_months": {
      "type": "integer",
      "description": "Months of service needed"
     },
     "min_hours": {
      "type": "string",
      "format": "decimal",
      "description": "Hours worked in the last 12 months needed"
     },
     "worksite_50_in_75": {
      "type": "boolean",
      "description": "The worksite has 50 or more employees within 75 miles"
     },
     "default_hours_per_week": {
      "type": "string",
      "format": "decimal",
      "description": "Workweek when an employee has none recorded (hours)"
     },
     "certification_days": {
      "type": "integer",
      "description": "Days to return the certification"
     },
     "leave_type_id": {
      "type": "string",
      "format": "uuid",
      "description": "Leave plan FMLA leave is booked on"
     },
     "hr_contact": {
      "type": "string",
      "description": "HR contact on the notices"
     },
     "notes": {
      "type": "string",
      "description": "Notes"
     },
     "created_at": {
      "type": "string",
      "format": "date-time",
      "description": "Created at",
      "readOnly": true
     },
     "updated_at": {
      "type": "string",
      "format": "date-time",
      "description": "Updated at",
      "readOnly": true
     },
     "created_by": {
      "type": "string",
      "format": "uuid",
      "description": "Created by",
      "readOnly": true
     },
     "updated_by": {
      "type": "string",
      "format": "uuid",
      "description": "Updated by",
      "readOnly": true
     },
     "xf_text_1": {
      "type": "string",
      "description": "Xf text 1",
      "readOnly": true
     },
     "xf_text_2": {
      "type": "string",
      "description": "Xf text 2",
      "readOnly": true
     },
     "xf_text_3": {
      "type": "string",
      "description": "Xf text 3",
      "readOnly": true
     },
     "xf_text_4": {
      "type": "string",
      "description": "Xf text 4",
      "readOnly": true
     },
     "xf_text_5": {
      "type": "string",
      "description": "Xf text 5",
      "readOnly": true
     },
     "xf_num_1": {
      "type": "string",
      "format": "decimal",
      "description": "Xf num 1",
      "readOnly": true
     },
     "xf_num_2": {
      "type": "string",
      "format": "decimal",
      "description": "Xf num 2",
      "readOnly": true
     },
     "xf_num_3": {
      "type": "string",
      "format": "decimal",
      "description": "Xf num 3",
      "readOnly": true
     },
     "xf_date_1": {
      "type": "string",
      "format": "date",
      "description": "Xf date 1",
      "readOnly": true
     },
     "xf_date_2": {
      "type": "string",
      "format": "date",
      "description": "Xf date 2",
      "readOnly": true
     }
    }
   }
  }
 },
 "security": [
  {
   "bearer": []
  }
 ],
 "paths": {
  "/api/hrms/fmla-settings": {
   "get": {
    "summary": "list fmla-settings",
    "operationId": "list_fmla_settings_0_4",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "post": {
    "summary": "create fmla-settings",
    "operationId": "create_fmla_settings_1_4",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/hrms/fmla-settings/{id}": {
   "get": {
    "summary": "get fmla-settings",
    "operationId": "get_fmla_settings_0_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "put": {
    "summary": "change fmla-settings",
    "operationId": "change_fmla_settings_1_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "delete": {
    "summary": "delete fmla-settings",
    "operationId": "delete_fmla_settings_2_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/hrms/fmla-settings/{id}/copy": {
   "post": {
    "summary": "Copy",
    "operationId": "action_fmla_settings_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"
     }
    }
   }
  }
 }
}