> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nexusmission.com.br/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Member Role

> Change the role of a project member.

## Path Parameters

<ParamField path="projectId" type="string" required>
  Project ID.
</ParamField>

<ParamField path="memberId" type="string" required>
  Member ID.
</ParamField>

## Body

<ParamField body="role" type="string" required>
  New role: `VIEWER`, `EDITOR`, or `ADMIN`.
</ParamField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X PATCH http://localhost:3000/api/v1/projects/clxyz456/members/clmem001/role \
    -H "Authorization: Bearer <token>" \
    -H "Content-Type: application/json" \
    -d '{"role": "ADMIN"}'
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "id": "clmem001",
    "userId": "cljane001",
    "projectId": "clxyz456",
    "role": "ADMIN"
  }
  ```
</ResponseExample>
