On this page6 sections
POST/api/users/update-userUsersPermission: users.update
Update User
Updates profile fields, role assignment, user group, outlet assignments, or password for an existing user in the active tenant. Enforces privilege escalation guards.
Authentication: Requires Authorization: Bearer <ACCESS_TOKEN> (Supabase JWT, OAuth2 M2M token, or integration token).
Request
Provide the following fields in the request payload.
emailstring (email)optional
email parameter.
usernamestring | nulloptional
username parameter.
namestring | nulloptional
name parameter.
phonestring | nulloptional
phone parameter.
statusenum('pending' | 'approved' | 'rejected')optional
status parameter.
isActivebooleanoptional
is Active parameter.
roleIdstring (uuid) | nulloptional
role Id parameter.
userGroupIdstring (uuid) | nulloptional
user Group Id parameter.
outletIdsarray<string (uuid)>optional
outlet Ids parameter.
passwordstringoptional
password parameter.
idstring (uuid)required
id parameter.
Responses
Select a status code to inspect schema.
OK — User updated and auth metadata synchronized.application/json
successenum('true')
Success (true).
messagestring
Message.
dataobject | null
Response payload or null.
POST/api/users/update-user
curl -X POST "https://api.invoger.com/api/users/update-user" \
-H "Authorization: Bearer <ACCESS_TOKEN>" \
-H "Content-Type: application/json" \
-d '{ "id": "c7d8e9f0-1234-5678-9abc-def012345678", "name": "Siti Rahmawati", "isActive": true }'Interactive playground
Response
application/json
{
"success": true,
"message": "Success",
"data": {
"id": "c7d8e9f0-1234-5678-9abc-def012345678",
"name": "Siti Rahmawati",
"isActive": true,
"updatedAt": "2026-11-26T11:35:00.000Z"
}
}