Skip to Content
PeopleForce
Time

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.

Create timesheet entry

Deprecated

POST
/api/public/v2/time/timesheet_entries

Request Body

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

Response Body

The timesheet entry.

application/json
  1. response
data*
Example Request
curl -X POST 'https://app.peopleforce.io/api/public/v2/time/timesheet_entries' \  -H 'Content-Type: application/json' \  -d '{  "employee_id": 0,  "starts_at": 0,  "ends_at": 0}'
Example Response
{  "data": {    "id": 0,    "employee_id": 0,    "project_id": 0,    "starts_at": "2019-08-24T14:15:22Z",    "ends_at": "2019-08-24T14:15:22Z",    "date": "2019-08-24",    "minutes": 0,    "type": "working",    "comment": "string"  }}