Skip to Content
PeopleForce
Leaves

Deprecated

Company API v2 is deprecated. It no longer receives changes and will stop being supported, so move integrations to Company API v3, which serves every v2 path under /api/public/v3.

List all leave policies

Deprecated

GET
/api/public/v2/leave_policies

Response Body

The leave policies.

application/json
  1. response
data*array<>
Example Request
curl -X GET 'https://app.peopleforce.io/api/public/v2/leave_policies'
Example Response
{  "data": [    {      "id": 0,      "name": "string",      "activity_type": "not_working_paid",      "counted_as": "string",      "leave_type_id": 0,      "visibility": "public",      "type": "accrual",      "created_at": "2019-08-24T14:15:22Z",      "updated_at": "2019-08-24T14:15:22Z"    }  ]}