curl -X PUT https://api.companyflow.com/leave-types/a1b2c3d4-e5f6-7890-abcd-ef1234567890 \ -H "Authorization: Bearer YOUR_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "daysAllowed": 22, "maxCarryForwardDays": 10, "description": "Updated policy with increased allowance" }'
{ "success": true, "data": { "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "company_id": "123e4567-e89b-12d3-a456-426614174000", "name": "Annual Leave", "code": "AL", "description": "Updated policy with increased allowance", "days_allowed": 22, "is_paid": true, "requires_documentation": false, "carry_forward_allowed": true, "max_carry_forward_days": 10, "color_code": "#3B82F6", "status": "active", "created_at": "2025-01-15T10:30:00Z", "updated_at": "2025-03-03T15:45:00Z" } }
Update an existing leave type configuration
"a1b2c3d4-e5f6-7890-abcd-ef1234567890"
"Annual Leave (Updated)"
"AL"
"Updated policy for annual vacation time"
22
true
10
"#10B981"
active
inactive
"active"
Show LeaveType properties