> ## Documentation Index
> Fetch the complete documentation index at: https://kiran.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Update a member

> Update a team member's role

### Path

<ParamField path="slug" type="string" required="true">
  Team slug
</ParamField>

<ParamField path="memberId" type="string" required="true">
  ID of the member to update
</ParamField>

### Body

<ParamField body="role" type="string" required="true">
  Role of the member
</ParamField>

<RequestExample>
  ```bash Request
  curl --location 'http://localhost:3005/api/teams/acme/members' \
  --header 'Accept: application/json' \
  --header 'Authorization: Token <token>'
  ```
</RequestExample>

<ResponseExample>
  ```json Response
  {
    "data": {
      "id": 1,
      "teamId": 1,
      "userId": 2,
      "role": "MEMBER",
      "createdAt": "2023-07-03T19:24:35.739Z",
      "updatedAt": "2023-07-03T19:33:51.341Z"
    }
  }
  ```
</ResponseExample>
