General Information
...
Service | API | Method |
---|---|---|
urac | /admin/editUser | POST |
...
Workflow: Edit User Flow
Input
...
Type: application/json
Name | Source | Mandatory | Type | Special Format | Description | |
---|---|---|---|---|---|---|
uId | Query | YES | String | N/A | ||
username | Body | YES | String | alphanumeric with _ , - characters only | ||
firstName | Body | YES | String | N/A | ||
lastName | Body | YES | String | N/A | ||
Body | YES | String |
Email Address Format (JSON Schema Validation) | ||||
status | Body | YES | String |
- Enum | 'active', 'inactive' | restricted to either 'active' OR 'inactive' | ||
groups | Body | NO | Array |
Array of Strings | array of group code values | ||||
profile | Body | NO | Object | N/A |
password |
body | NO |
String |
confirmation |
body |
NO |
String |
Same Password Value | |||||||||||||
pin | body | NO | |||||||||||
code | NO | Boolean | set to True to change pin to a random generated code | ||||||||||
allowed | NO | Boolean | |||||||||||
config | Body | NO | Object | N/A | |||||||||
|
|
|
|
|
|
|
|
|
Example of config:
|
Output
...
Valid Response
Code Block | ||||
---|---|---|---|---|
| ||||
{ "result": true, "data": true } |
...
Code | Description | |||
---|---|---|---|---|
405 | Unable to find User. Please try again. | |||
407 | Problem validating Request. Please try again. | |||
410 | username taken, please choose another username | |||
411 | invalid user id provided | 413 | Invalid profile fieldprovided | . Profile should be a stringified object.|
415 | Unable to find group. | |||
500 | This record in locked. You cannot modify or delete it |
Example (CURL)
...