Update a user
/system/v2/accounts/users/{id}
Platform support: MT and CC
Token Cost: 2 tokens (low)
Updates a site user. The body has the same general, contact, password and
statistics_permissions sections as on create. All sections and fields are
optional; omitted or null sections and fields keep their current values.
Required fields cannot be set to an empty string.
A changed general.email must not already be used by another site user.
An absent, null or empty password.password keeps the current password; a
password cannot be cleared. A supplied password must be repeated in
password.confirm_password and must meet the same policy as on create and, unless
password checks are disabled, must differ from the current password. It resets the
password change time. It also
invalidates any legacy (MD5) password the account still had.
Re-enabling (general.disabled: false) a user that the inactivity policy disabled
sets its last login to now, which restarts the inactivity period.
The user always gets the app privileges of its group; privileges set for the user
alone are dropped on every save. general.group is therefore required when the
user has no group (general.group is null in the user's details).
statistics_permissions are only allowed on Contact Center systems, and their
campaigns only when the dialer is enabled; otherwise sending them is forbidden.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 409
- 500
User updated successfully
Invalid request
Unauthorized
Forbidden
Resource not found
Conflict - resource already exists or is in use
Internal server error