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.

Bulk assign employees to a project

Deprecated

POST
/api/public/v2/time/projects/{project_id}/project_users

Path Parameters

project_id*integer
Formatint64

Request Body

application/json
  1. body
employee_ids*array<>

Response Body

The records that were written, and an error for each that was not.

application/json
  1. response
records*
errors*
Example Request
curl -X POST 'https://app.peopleforce.io/api/public/v2/time/projects/0/project_users' \  -H 'Content-Type: application/json' \  -d '{  "employee_ids": [    0  ]}'
Example Response
{  "records": {    "count": 0,    "data": [      {        "employee_id": 0,        "project_user_id": 0      }    ]  },  "errors": {    "count": 0,    "data": [      {        "employee_id": 0,        "messages": [          "string"        ]      }    ]  }}