Update team member
hub_update_userChange a team member's own details: name, phone, till PIN, and which outlets they work at. Takes the userId from get_team, never a name. Only the fields you pass change, but outletIds REPLACES their whole outlet list — read it back from get_team first and resend the ones that should stay, or you will quietly cut someone off from a location. Email cannot be changed here at all (the sign-in identity is not rotated, so the old address would keep working) — the merchant has to remove and re-invite the person. This tool does NOT change permissions: for that use assign_role.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| phone | No | ||
| userId | Yes | User id from get_team — not a name | |
| pincode | No | New till PIN, 4 to 6 digits | |
| lastName | No | ||
| firstName | No | ||
| outletIds | No | Replaces the outlets they may work at, ids from get_outlets. Omit to leave untouched |