> ## 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.

# updateMemberWorkflow

> Update member profile fields matching a selector.

Updates every member matching the selector — name and locale only. Triggered by `POST /vendor/members/me` when a member edits their own profile.

## Usage

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

const { result } = await updateMemberWorkflow(container).run({
  input: {
    selector: { id: "mem_123" },
    update: { first_name: "Jane", last_name: "Doe" },
  },
})
```

## Input

<ParamField body="selector" type="object" required>Filter selecting the members to update, e.g. `{ id: "mem_123" }`.</ParamField>

<ParamField body="update" type="object" required>
  Fields to update.

  <Expandable title="properties">
    <ParamField body="first_name" type="string | null">First name.</ParamField>
    <ParamField body="last_name" type="string | null">Last name.</ParamField>
    <ParamField body="locale" type="string | null">Preferred locale.</ParamField>
  </Expandable>
</ParamField>

## Result

<ResponseField name="result" type="MemberDTO[]">The updated members.</ResponseField>
