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

# Update Member Role

> Change a member's role in a group conversation

Updates the role of an active member in a group conversation. Only group conversations have roles — this endpoint returns a 400 for direct and space conversations.

The caller must be an active `admin`.

## Path Parameters

**conversationId** `string` *required*

The ID of the conversation.

**userId** `string` *required*

The ID of the member whose role is being changed.

## Body Parameters

**role** `string` *required*

The new role. Accepted values: `"admin"`, `"member"`.

## Response

Returns the updated [ConversationMember](https://docs.sublay.io/v7/data-models/conversation-member.md) record.

## Error Responses

> [accordion] Not Found — 404
>
> ```json theme={null}
> { "error": "Conversation not found.", "code": "chat/not-found" }
> ```

> [accordion] Invalid Type — 400 Bad Request
>
> ```json theme={null}
> { "error": "Roles can only be changed in group conversations.", "code": "chat/invalid-type" }
> ```

> [accordion] Forbidden — 403
>
> ```json theme={null}
> { "error": "Only group admins can change member roles.", "code": "chat/not-a-member" }
> ```

> [accordion] Member Not Found — 404
>
> ```json theme={null}
> { "error": "Member not found in this conversation.", "code": "chat/member-not-found" }
> ```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.