Summary
Updates the user profile for the active user
Description
Updates the user profile for the active user
Route
PUT /profile/update
Roles
Parameters
DetailsExampleSchema
Name |
Type |
Required |
Description |
userProfile |
object |
yes |
The account for the logged in user |
Copied to Clipboard
{
"username": "john_doe",
"email": "name@email.com"
}
Return
DetailsExampleSchema
Name |
Type |
Description |
result |
object |
Updated account document for current user |
Copied to Clipboard
{
"provenance": "Local AAA",
"username": "john_doe",
"firstname": "John",
"memberOf": [
{
"aaaManaged": true,
"groupId": "5cb7b531d06cceb89fd21b1c"
},
{
"aaaManaged": true,
"groupId": "5cb7b531d06cceb89fd21b1c"
}
],
"assignedRoles": [
{
"roleId": "5cb7b531d06cceb89fd21b1c"
},
{
"roleId": "5cb7b531d06cceb89fd21b1c"
},
{
"roleId": "5cb7b531d06cceb89fd21b1c"
},
{
"roleId": "5cb7b531d06cceb89fd21b1c"
}
],
"inactive": true,
"lastLogin": "2018-08-02T15:56:12.912Z",
"_meta": {
"created": "2018-08-02T15:56:12.912Z",
"updated": "2018-08-02T15:56:12.912Z"
},
"email": "name@email.com",
"isServiceAccount": false
}