This call supports full and partial updates:
- All the populated fields in the update request are updated;
- Any non-mandatory fields excluded from the operation are skipped.
For a field to be updated correctly, it needs to be completely populated. For example, to update an element that contains child elements, all the mandatory child elements must be populated with valid data.
If one or more mandatory sub-elements are missing from the update request, the whole parent element fails to update, and its value does not change.
When you make a POST /updateWebUser
request, take the following guidelines into account:
grantRoles
: Update per role.revokeRoles
: Update per role.name
andemail
are related fields; therefore, they both need to be completely populated in the update request, even when you want to update only one of them.- This implies also that if the update fails for either
name
oremail
, the other related element is not updated, either. addMerchantCodes
: Update permerchantCode
.deleteMerchantCodes
: Update permerchantCode
.
Request parameters
To update web user account information, make a POST /updateWebUser
request specifying:
Name | Type | Description | ||
---|---|---|---|---|
userName |
String |
|
A user name string holds the user account display name.
| |
active |
Boolean |
|
|
|
addMerchantCodes |
List |
|
A list holding merchant codes you want to activate and associate with the specified user account.A merchant code string holds a value to identify a merchant. Format:
| |
deleteMerchantCodes |
List |
|
A list holding merchant codes you want to make inactive and remove from the specified user account. A merchant code string holds a value to identify a merchant. Format:
| addAccountGroupCodes |
List |
|
A list of account groups that the user should have access to. |
removeAccountGroupCodes |
List |
|
A list of account groups that the user should no longer have access to. | |
email |
String |
|
The email address associated with the user account. | |
grantRoles |
List |
|
New roles you want to assign to the specified user account.
Roles in this list should not be included in | |
RoleType |
enum |
|
It defines the type of role assigned to the user account.
| |
revokeRoles |
List |
|
Assigned roles you want to revoke from the specified user account.
Roles in this list should not be included in The | |
RoleType |
enum |
|
It defines the type of role assigned to the user account.
| |
timeZoneCode |
String |
|
The time zone associated to the user account profile. If you do not specify any value, the active user's time zone settings are used instead. | |
name |
Object |
|
A container object for personal data. This object contains:
|
|
|-firstName |
String |
|
The first name/given name of the user.
|
|
|-lastName |
String |
|
The last name/family name of the user.
|
Response parameters
If there are no errors in the request, the call returns a pspReference.
If any issues occur during the process, the call returns one or more warning or error messages.
Name | Type | Returned by default | Description |
---|---|---|---|
|
String |
|
A reference to uniquely identify the request. |
|
String |
|
List containing one or more warning messages. |
|
String |
|
List containing one or more error messages. |