Browse the help center

Update user info

Updates the profile information of a specified user.

Reference
POST https://YOUR-NETWORK-DOMAIN/rest-api/user/update.do

Updates the profile information of a specified user. Only admin-role users can call this endpoint. The fields to update are provided as form parameters (login, password, firstName, lastName, email, phone, country, state, company, websiteUrl, active, receiveNewsletter, receiveNotificationsByEmail, role, referer, uiStyle, comments, aiChatMonthlyLimitUsd). Only non-null fields are applied; null fields are left unchanged, except aiChatMonthlyLimitUsd, which an empty value clears. The login and email must be unique across the system. Role changes are validated against the caller's manageable roles. A new password must satisfy the network's password policy, as on the console's user forms: at least 8 characters by default, not one of the most common passwords, no leading or trailing space, and not containing the account's login or the local part of its email; a violation is reported in errors.password and nothing is saved. Setting a password also ends the account's other signed-in sessions, invalidates its outstanding password-reset links and emails the account holder that the password was changed, at the previous address as well when the same request changes the email. Changing the email also sends the previous address a notice that it was changed. A country code or role id that does not exist is reported in errors.country / errors.role and nothing is saved. Parameters that were sent but are not fields of this operation (such as the removed adsHost) are not applied and are listed in ignoredFields, each with its reason in ignoredFieldReasons.

Form Params

usernameToUpdate string required

Username (login) of the target user whose profile should be updated. The user must exist in the system

john.doe

active boolean

Whether the user account is active

true

aiChatMonthlyLimitUsd string

The user's monthly AI assistant budget in billed USD, 0 to 1000000. Send it empty to clear it, so the network default applies; leave it out to keep the current value.

50

comments string

Admin comments about the user

VIP client, priority support

company string

Company name

Acme Inc.

country string

Two-letter country code (ISO 3166-1 alpha-2)

US

email string

User email address

john@example.com

firstName string

First name

John

lastName string

User's last (family) name

Doe

login string

User login name (username)

john.doe

password string

New password for the account. Checked against the network's password policy (8-64 characters by default, not a common password, not containing the login or email); setting it ends the account's other sessions and emails the account holder

s3cur3P@ss

phone string

Phone number

+1 (555) 123-4567

receiveNewsletter boolean

Whether the user receives newsletters

true

receiveNotificationsByEmail boolean

Whether the user receives notifications by email

true

referer string

Referrer URL or identifier

https://partner.com

role integer

User role ID

3

state string

State or region name

California

uiStyle string

UI style preference

TREES

websiteUrl string

Website URL

https://example.com

Responses

200

Operation result with success status

400

Bad request — invalid or missing parameters

401

Authentication error

403

Forbidden — insufficient permissions

Please disable Adblock
Are you using adblock? Disable it and reload the page to proceed to the destination page.

A registration has already been submitted from this page. Please try again in 10 minutes.