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

# Bulk Update Team Members

> Updates multiple `TeamMember` objects.

`square.bulkUpdateTeamMembers` updates multiple `TeamMember` objects.

## Example

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

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

  square.bulkUpdateTeamMembers({
    teamMembers: {
      "AFMwA08kR-MIF-3Vs0OE": {
        teamMember: {
          referenceId: "reference_id_2",
          isOwner: false,
          status: "ACTIVE",
          givenName: "Jane",
          familyName: "Smith",
          emailAddress: "jane_smith@gmail.com",
          phoneNumber: "+14159223334",
          assignedLocations: {
            assignmentType: "ALL_CURRENT_AND_FUTURE_LOCATIONS",
          },
        },
      },
      "fpgteZNMaf0qOK-a4t6P": {
        teamMember: {
          referenceId: "reference_id_1",
          isOwner: false,
          status: "ACTIVE",
          givenName: "Joe",
          familyName: "Doe",
          emailAddress: "joe_doe@gmail.com",
          phoneNumber: "+14159283333",
          assignedLocations: {
            assignmentType: "EXPLICIT_LOCATIONS",
            locationIds: ["YSGH2WBKG94QZ", "GA2Y9HSJ8KRYT"],
          },
        },
      },
    },
  })
})
```

## Inputs

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

| Field         | Type                                               | Required | Default | Description                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| ------------- | -------------------------------------------------- | -------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `teamMembers` | `Record\<string, Square.UpdateTeamMemberRequest\>` | Yes      | —       | The data used to update the `TeamMember` objects. Each key is the `team_member_id` that maps to the `UpdateTeamMemberRequest`. The maximum number of update objects is 25. For each team member, include the fields to add, change, or clear. Fields can be cleared using a null value. To update `wage_setting.job_assignments`, you must provide the complete list of job assignments. If needed, call ListJobs to get the required `job_id` values. |

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

## Output

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