Edit account user

Update an existing account user's name/title, role, store assignments, optional password and deactivation date. You cannot edit your own account. Password changes revoke the target's live tokens and are audited. The target must belong to the caller's account company.

Auth

  • Account admin — collection bearer token. authorize requires caller company bundle_id=BRAND, the target in the same company, and the target ≠ self (else 403).

Rate limit

  • No rate limit.

Body

FieldTypeRequiredNotes
userintegerRequiredId of the user to edit.
first_namestringRequired≤255 chars; no angle brackets.
last_namestringOptional≤255 chars.
titlestringOptional≤50 chars.
passwordstringOptional8–100 chars, complexity rules; blank leaves the password unchanged.
user_typestringRequiredadmin, location_assign, or basic.
store_idsinteger[]Required if user_type=location_assign, or basic with assign_all_accounts=0Store ids under the caller's account.
assign_all_accountsintegerRequired if user_type=basic0/1.
send_default_reportsintegerOptional0/1.
inactive_atstringOptionalY-m-d H:i:s.

Behaviour

  • Synchronous (DB transaction). 200 on success.
  • 403 when authorize fails (not an account / target not in company / editing self).
  • 422 on validation failure; 500 on save failure (rolled back).
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
integer
string
string
string
string | null
string
store_ids
array of integers
store_ids
integer
integer
string | null
Responses

Language
Credentials
Bearer
JWT
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json