Creates a Leave typeAsk AIpost https://api.factorialhr.com/api/2025-10-01/resources/timeoff/leave_typesCreates a Leave typeBody ParamsaccruesbooleanrequiredWhether the leave type accrues over timetruefalseapproval_requiredbooleanrequiredWhether approval is required for this leave typetruefalseidentifierstringrequiredA unique identifier for the leave typeattachmentbooleanWhether an attachment is required for this leave typetruetruefalsecolorstringrequiredThe color associated with this leave typenamestringrequiredThe name of the leave typevisibilitybooleanWhether the leave type is visible to employeestruetruefalseworkablebooleanrequiredWhether the leave type is workable (can be worked on during leave)truefalsepayablebooleanWhether the leave type is payabletruetruefalseis_attachment_mandatorybooleanWhether the attachment is mandatoryfalsetruefalsehalf_days_units_enabledbooleanWhether half-day units are enabled for this leave typetruetruefalsemax_days_in_centsintegerMaximum days in cents that can be takenmin_days_in_centsintegerMinimum days in cents that must be takencompany_idintegerrequiredIdentifier of the company associated with this leave typeeditablebooleanWhether the leave type is editabletruetruefalseallow_endlessbooleanWhether endless leave is allowedfalsetruefalserestrictedbooleanWhether the leave type is restrictedfalsetruefalsedescriptionstringDescription of the leave typedetails_requiredbooleanrequiredWhether additional details are required for the leave typetruefalseResponse 201CREATEDUpdated 7 months ago