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

# updateMemberRoleWorkflow

> Change a team member's role.

Validates the target is not the seller owner, then updates the seller-member link's role. Triggered by `POST /admin/sellers/:id/members/:member_id` and `POST /vendor/sellers/:id/members/:member_id`. Emits `seller_member.updated`.

## Usage

```ts theme={null}
import { updateMemberRoleWorkflow } from "@mercurjs/core/workflows"

await updateMemberRoleWorkflow(container).run({
  input: {
    seller_member_id: "selmem_123",
    role_id: "role_seller_order_management",
  },
})
```

## Input

<ParamField body="seller_member_id" type="string" required>Id of the seller-member link to update; must not be the owner.</ParamField>
<ParamField body="role_id" type="string" required>New role to assign.</ParamField>

## Result

<ResponseField name="result" type="void">Nothing is returned.</ResponseField>
