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

> ## Agent Instructions
> Automate.ax automations are TypeScript programs.
> Use Bun for installation and command examples.
> Use Automate.ax for the product name and automate.ax for the package, CLI, and domain.
> Treat documented public APIs as current; do not invent transitional or deprecated names.

# Update Team Member

> Updates a single `TeamMember` object.

`square.updateTeamMember` updates a single `TeamMember` object.

## Example

```ts automations/square-update-team-member.automation.ts theme={null}
import { automation, onDashboardRun } from "automate.ax"
import { square } from "automate.ax/square"

export default automation("Update Square Team Member", () => {
  onDashboardRun({ title: "Update Square Team Member" })

  square.updateTeamMember({
    teamMemberId: "team_member_id",
    body: {
      teamMember: {
        referenceId: "reference_id_1",
        status: "ACTIVE",
        givenName: "Joe",
        familyName: "Doe",
        emailAddress: "joe_doe@gmail.com",
        phoneNumber: "+14159283333",
        assignedLocations: {
          assignmentType: "EXPLICIT_LOCATIONS",
          locationIds: ["YSGH2WBKG94QZ", "GA2Y9HSJ8KRYT"],
        },
        wageSetting: {
          jobAssignments: [
            {
              payType: "SALARY",
              annualRate: {
                amount: BigInt("3000000"),
                currency: "USD",
              },
              weeklyHours: 40,
              jobId: "FjS8x95cqHiMenw4f1NAUH4P",
            },
            {
              payType: "HOURLY",
              hourlyRate: {
                amount: BigInt("1200"),
                currency: "USD",
              },
              jobId: "VDNpRv8da51NU8qZFC5zDWpF",
            },
          ],
          isOvertimeExempt: true,
        },
      },
    },
  })
})
```

## Inputs

Every input accepts a compatible signal. It requires `EMPLOYEES_WRITE`.

| Field          | Type                             | Required | Default | Description                          |
| -------------- | -------------------------------- | -------- | ------- | ------------------------------------ |
| `teamMemberId` | `string`                         | Yes      | —       | The ID of the team member to update. |
| `body`         | `Square.UpdateTeamMemberRequest` | Yes      | —       | Square `body` request field.         |

Use the official [UpdateTeamMember reference](https://developer.squareup.com/reference/square/team-api/update-team-member) for provider field semantics and limits.

## Output

Returns the official `Square.UpdateTeamMemberResponse` response as a codec-safe object. Square integer money amounts remain `bigint` values.
