---
title: "Add a Worker"
method: POST
path: "/v1/project/{project_id}/worker/"
tags: ["Projects"]
---

# Add a Worker

`POST /v1/project/{project_id}/worker/`

Add a worker to project.

The user must already exist before being added to a project.

## Path parameters

- `project_id` integer, required

## Request body

- ProjectUserBaseModel
  - `isAdmin` boolean — Indicates if the user is an administrator, this flag can only be true, only if role is also `company_owner` otherwise this flag is set to `False`.
  - `documentAccess` 'none' | 'read' | 'write' — Company user access type enumeration.
  - `feedAccess` 'none' | 'read' | 'write' — Company user access type enumeration.
  - `userId` integer, required — The user identifier of the worker to add to the project.

## Response `200`

Successful Response

- ApiGenericResponseProjectUserModel
  - `error` boolean — A boolean error indicator.
  - `message` string, nullable — Optional message.
  - `data` ProjectUserModel
    - `isAdmin` boolean — Indicates if the user is an administrator, this flag can only be true, only if role is also `company_owner` otherwise this flag is set to `False`.
    - `documentAccess` 'none' | 'read' | 'write' — Company user access type enumeration.
    - `feedAccess` 'none' | 'read' | 'write' — Company user access type enumeration.
    - `userId` integer, required — The user identifier of the worker to add to the project.
    - `id` integer, nullable — The project user identifier.
    - `companyId` integer, required — The company identifier of the user on this project.
    - `siteId` integer, required — The project identifier.

## Other responses

- `400` — Business Logic Error
- `403` — Permission Error
- `409` — Integrity Error or Data Conflict
- `422` — Validation Error

---

[API](https://skmtc.dev/salussafety/apis/salus-developer-api.md) · [All operations](https://skmtc.dev/salussafety/apis/salus-developer-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/salussafety/salus-developer-api/revisions/ef065f44da25/schema)
