Skip to Content
PeopleForce
Time

Create overtime request

POST
/api/public/v3/time/overtime_requests

Request Body

application/json
  1. body
employee_id*integer
Formatint64
date*string
Formatdate
starts_at*string
ends_at*string
comment*string
project_id?integer
Formatint64

Response Body

The created overtime request.

application/json
  1. response
data*
Example Request
curl -X POST 'https://app.peopleforce.io/api/public/v3/time/overtime_requests' \  -H 'Content-Type: application/json' \  -d '{  "employee_id": 0,  "date": "2019-08-24",  "starts_at": "string",  "ends_at": "string",  "comment": "string"}'
Example Response
{  "data": {    "id": 0,    "date": "2019-08-24",    "starts_at": "2019-08-24T14:15:22Z",    "ends_at": "2019-08-24T14:15:22Z",    "minutes": 0,    "comment": "string",    "state": "pending",    "project": {      "id": 0,      "name": "string"    },    "employee": {      "id": 0,      "first_name": "string",      "last_name": "string"    },    "created_at": "2019-08-24T14:15:22Z",    "updated_at": "2019-08-24T14:15:22Z"  }}