Employees
Create leave type
Path Parameters
employee_id*integer
Request Body
application/x-www-form-urlencoded
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://example.com/api/public/v3/employees/0/leave_types" \ -H "Content-Type: application/x-www-form-urlencoded" \ -d 'leave_type_id=string&leave_type_policy_id=string&effective_on=string'{ "data": { "id": 0, "effective_on": "string", "balance": 0.1, "leave_type": { "id": 0, "name": "string" }, "leave_type_policy": { "id": 0, "name": "string" }, "created_at": "string", "updated_at": "string" }}