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

# Update Member Role

> Update a member's role within a space

Changes a member's role. Only space admins can perform this action.

## Path Parameters

<ParamField path="spaceId" type="string" required>
  UUID of the space.
</ParamField>

<ParamField path="memberId" type="string" required>
  UUID of the membership record to update.
</ParamField>

## Body Parameters

<ParamField body="role" type="string" required>
  New role: `"admin"`, `"moderator"`, or `"member"`.
</ParamField>

## Response

<ResponseField name="message" type="string">
  Confirmation message.
</ResponseField>

<ResponseField name="membership" type="object">
  Updated membership with `id`, `role`, `status`, `joinedAt`, and `userId`.
</ResponseField>

See also: [useUpdateMemberRole](/hooks/spaces/use-update-member-role)
