Skip to main content
PATCH
Change a member

Authorizations

API-Key
string
header
required

Your API key, from More → API & Integrations in the dashboard, or from ht signup / ht auth login.

Path Parameters

id
string
required

Member id (6 characters).

Body

application/json

Fields for creating or changing a member. Unknown fields are refused with 400.

username
string

Login name, e.g. an email address. Required on create. On PATCH it renames the member (company admins only); the old name stays as an alias.

name
string

Full name. Required on create.

email
string
phone
string
password
string

Create only: must be a strong password; without it the member gets a temporary one and sets their own via the invite. PATCH refuses it with 400.

role
string

worker (default), operator (or dispatcher), admin. Any other value means worker. Only admins and company keys may make admins or change roles, and never their own.

Examples:

"worker"

"operator"

"admin"

color
string
language
string

ISO 639-1, e.g. en.

timezone
string

IANA time zone.

unitDistance
enum<string>
Available options:
SI,
US
unitTime
enum<string>
Available options:
12,
24
unitDate
string

Date pattern, e.g. MM-dd-yyyy.

statusLabel
string
routeStartLat
number
routeStartLng
number
routeEndLat
number
routeEndLng
number
travelMode
enum<string>
Available options:
car,
bicycle,
pedestrian,
truck,
van,
motorcycle
vehicleCapacity
integer
routeStartTime

"HH:mm" (also H:mm or HHmm), a number in HHMM form (800), or "team" (or -1) to use the team's start time. null leaves it unchanged.

teams
integer[]

Team numbers; replaces all of the member's teams.

workingHours
object

A week of working hours, one window per day, times as HHMM numbers. On write all 7 days are required; send {} to drop the member's own hours and use the team's again.

workingHoursOverrides
object

Single days with other hours, keyed by day as YYYYMMDD (8 digits). On write the whole set is replaced; other keys are ignored.

Response

The changed member.

data
object
required
error
null
required
meta
object
required