v1

latestOpenAPI 3.1.02026-07-26549156879.0 KB
ProjectManagement > ProjectWorker

Bulk assigns a Project worker

What does it do?

This method is used to specify a set of employees that should be assigned as a result of the execution. All the employees in the list will be assigned and all others will be unassigned.

Who can use it?

Only companies who have enabled the projects_management feature and users with a role in the given project.

post/api/2026-07-01/resources/project_management/project_workers/bulk_assign

Request body

project_idstring

DEPRECATED in favor of project_ids. Please use project_ids instead

project_idsstring[]

Set of project_ids to assign to the employees specified in the next param.

employee_idsstring[] required

Set of a employee_ids that must be assigned after execution.

Example request

{
  "project_id": "314159",
  "project_ids": [
    "33",
    "34"
  ],
  "employee_ids": [
    "21",
    "22",
    "23"
  ]
}

Response

OK

idstring required

id of the project worker.

project_idstring required

id of the project.

employee_idstring required

id of the employee.

assignedboolean required

true if the employee is assigned to the project, false otherwise.

inputed_minutesinteger

total inmputed minutes of the employee in the project.

labor_cost_centsinteger

total project currency labor cost of the employee in the project.

company_labor_cost_centsinteger

total company currency labor cost of the employee in the project.

spending_cost_centsinteger

total spending cost of the employee in the project.

Example response

[
  {
    "id": "92732",
    "project_id": "314159",
    "employee_id": "21",
    "assigned": true,
    "inputed_minutes": 100,
    "labor_cost_cents": 100,
    "company_labor_cost_cents": 100,
    "spending_cost_cents": 100
  }
]