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.
List all leave types
Response Body
application/json
curl -X GET "https://example.com/api/public/v1/leave_types"{ "data": [ { "id": 0, "name": "string", "unit": "string", "hex_color": "string", "fa_class": "string", "created_at": "string" } ], "metadata": { "pagination": { "page": 0, "pages": 0, "count": 0, "items": 0 } }}