---
title: "Assign/remove users to/from the project"
method: POST
path: "/v1/workspaces/{workspaceId}/projects/{projectId}/memberships"
tags: ["Project"]
---

# Assign/remove users to/from the project

`POST /v1/workspaces/{workspaceId}/projects/{projectId}/memberships`

## Path parameters

- `workspaceId` string, required — Represents a workspace identifier across the system.
- `projectId` string, required — Represents a project identifier across the system.

## Request body

- AddUsersToProjectRequestV1
  - `remove` boolean — Setting this flag to 'true' will remove the given users from the project.
  - `userGroups` UserGroupIdsSchema — Provide list with user group ids and corresponding status.
    - `contains` 'CONTAINS' | 'DOES_NOT_CONTAIN'
    - `ids` string[] — Represents ids upon which filtering is performed.
    - `status` 'ALL' | 'ACTIVE' | 'INACTIVE' — Represents user status.
  - `userIds` string[] — Represents array of user ids which should be added/removed.

## Response `200`

OK

---

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