---
title: "Update a project team member"
method: PATCH
path: "/projects/{project-id}/members/{user-id}"
tags: ["Projects"]
---

# Update a project team member

`PATCH /projects/{project-id}/members/{user-id}`

## Request

- Base URL: `https://projects-api.home.mendix.com/v2`
- URL: `https://projects-api.home.mendix.com/v2/projects/{project-id}/members/{user-id}`
- Auth: API key in header `Authorization`

Changes the way the team member interacts with the project. Mendix and project administrators are allowed to change the team member's project role assignment, regardless of whether the project or the user is active or not. Team members can change the `isPinned` or `isWatching` attributes, but only if they themselves are active members of the platform and their project is active.</br></br>Every request must be authenticated by a Personal Access Token containing the scope `mx:app:team:write`

## Path parameters

- `project-id` string, required
- `user-id` string, required

## Request body

- object
  - `attributes` object[]: Array of attributes to be changed.
    - `key` string: Name of the attribute to be changed. Possible values are `roleId`, `isPinned`, or `isWatching`. All other values will be ignored.
    - `value` string: New value of the attribute. The `roleId` expects a valid UUID. The attributes `isPinned` and `isWatching` expect a Boolean.

## Response `204`

No Content

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `404`: Not Found
- `500`: Internal Server Error

---

[API](https://skmtc.dev/mendix/apis/projects-api.md) - [All operations](https://skmtc.dev/mendix/apis/projects-api/llms.txt) - [OpenAPI document](https://skmtc.dev/mendix/apis/projects-api/revisions/3a958ca32c74?raw)
