MonetaryAI / Docs
API ReferenceUsers and roles

Edit a company user's name, role and status

Replaces company-local display name, optional contact email, one default role and ACTIVE/SUSPENDED status using lockVersion. Login email/password and global profile are never changed. Self edits and owner edits are forbidden. Existing temporary/special grants are revoked; suspension also revokes refresh sessions. Other company memberships are untouched. Company permission: `updateCompanyUser`. Defaults: ADMIN. Current company role permissions and active membership are checked on every request; signed legacy role claims alone do not authorize this operation.

PUT
/api/v1/settings/users/{id}

Authorization

bearerAuth
headerAuthorizationBearer <token>

Obtained from POST /api/v1/auth/login, on the tenant's own subdomain. Presenting it on another tenant's subdomain is a 403.

Path Parameters

id*string
Formatuuid

Request Body

application/json
  1. body
contactEmail?string
Formatemail
Length0 <= length <= 320
displayName*string
Length0 <= length <= 200
lockVersion*integer
Formatint32
Range0 <= value
role*string
MatchADMIN|ACCOUNTANT|MANAGER|EMPLOYEE
Length1 <= length
status*string
MatchACTIVE|SUSPENDED
Length1 <= length

Response Body

Membership updated and atomically audited

curl -X PUT 'https://api.monetaryai.uz/api/v1/settings/users/497f6eca-6276-4993-bfeb-53cbbbba6f08' \  -H 'Content-Type: application/json' \  -d '{  "displayName": "string",  "lockVersion": 0,  "role": "string",  "status": "string"}'
Empty