Leaves
Deprecated
Company API v1 is deprecated and will be removed in a future release. Migrate to a newer version — v4 is the latest. Use the version switcher in the header.
Create a leave type
Request Body
application/x-www-form-urlencoded
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/api/public/v1/leave_types" \ -H "Content-Type: application/x-www-form-urlencoded" \ -d 'name=string'{ "data": { "id": 0, "name": "string", "unit": "string", "hex_color": "string", "fa_class": null, "created_at": "string" }}