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": false,
"groupId": "5cb7b531d06cceb89fd21b1c"
},
{
"aaaManaged": true,
"groupId": "5cb7b531d06cceb89fd21b1c"
},
{
"aaaManaged": false,
"groupId": "5cb7b531d06cceb89fd21b1c"
},
{
"aaaManaged": true,
"groupId": "5cb7b531d06cceb89fd21b1c"
}
],
"assignedRoles": [
{
"roleId": "5cb7b531d06cceb89fd21b1c"
},
{
"roleId": "5cb7b531d06cceb89fd21b1c"
}
],
"inactive": false,
"gitTokens": {
"GitHub": "minim sed cupidatat nostrud",
"GitLab": "voluptate Ut nulla"
},
"lastLogin": "2018-08-02T15:56:12.912Z",
"sso": false,
"nameID": "Excepteur dolore consectetur aliqua",
"_meta": {
"created": "2018-08-02T15:56:12.912Z",
"updated": "2018-08-02T15:56:12.912Z"
},
"email": "name@email.com",
"isServiceAccount": true,
"loggedIn": false
}