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

# Update Member Role

Update the role of a member in your organization.

### Request

<ParamField path="membership_id" type="string" required>
  The unique identifier of the membership to update.
</ParamField>

<ParamField header="X-Organization-Id" type="string" required>
  The unique identifier of the organization.
</ParamField>

<ParamField body="new_role" type="string" required>
  The new role to assign to the member. Must be one of `admin`, `agent_manager`, or `user`.
</ParamField>

### Response

<ResponseField name="success" type="boolean">
  Indicates whether the operation was successful.
</ResponseField>

<ResponseField name="message" type="string">
  A descriptive message about the operation result.
</ResponseField>

<ResponseExample>
  ```json Response theme={null}
  {
    "success": true,
    "message": "Member role updated"
  }
  ```
</ResponseExample>
