---
title: "Update project members"
method: PUT
path: "/v2/projects/{project_id}/update_members"
tags: ["members"]
---

# Update project members

`PUT /v2/projects/{project_id}/update_members`

## Request

- Base URL: `https://api.hubstaff.com`
- URL: `https://api.hubstaff.com/v2/projects/{project_id}/update_members`
- Auth: OAuth 2
  - Authorization code: `https://account.hubstaff.com/authorizations/new`
  - Token URL: `https://account.hubstaff.com/access_tokens` scopes: `hubstaff:read`, `hubstaff:write`
- TypeScript: <https://skmtc.dev/hubstaff/apis/hubstaff-v2-api/docs/v2/projects/:project_id/update_members/put.ts> (a function with typed inputs; its response is checked against the schema)

Updates project members.

Returns {success: true} on success.

Only pass in the members you want to change.

Available roles:
- viewer - View-only access
- user - Standard member access
- manager - Project manager access
- remove - Removes user from project

You can also specify pay_rate and bill_rate for each member. To remove a rate, pass null.

## Path parameters

- `project_id` integer, required

## Request body

- PutV2ProjectsProjectIdUpdateMembers: Update project members
  - `members` object[], required
    - `user_id` integer, required: User ID
    - `role` 'viewer' | 'user' | 'manager' | 'remove': Role for the user.
    - `pay_rate` number, float: Default pay rate (will be rounded to 2 decimal places). Set to null to remove the rate
    - `bill_rate` number, float: Default bill rate (will be rounded to 2 decimal places). Set to null to remove the rate

## Response `200`

Updated successfully

## Other responses

- `400`: Invalid parameters
- `401`: Unauthorized
- `403`: API access is only for organizations on an active plan
- `404`: Could not find record
- `429`: Rate limit exceeded

---

[API](https://skmtc.dev/hubstaff/apis/hubstaff-v2-api.md) - [All operations](https://skmtc.dev/hubstaff/apis/hubstaff-v2-api/llms.txt) - [OpenAPI document](https://skmtc.dev/hubstaff/apis/hubstaff-v2-api/revisions/c6b90e4e4bdc?raw)
