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": false,
"groupId": "5cb7b531d06cceb89fd21b1c"
}
],
"assignedRoles": [
{
"roleId": "5cb7b531d06cceb89fd21b1c"
},
{
"roleId": "5cb7b531d06cceb89fd21b1c"
}
],
"inactive": false,
"gitTokens": {
"GitHub": "nisi anim adipisicing nulla",
"GitLab": "fugiat"
},
"lastLogin": "2018-08-02T15:56:12.912Z",
"sso": false,
"nameID": "nulla enim nostrud Duis eu",
"_meta": {
"created": "2018-08-02T15:56:12.912Z",
"updated": "2018-08-02T15:56:12.912Z"
},
"email": "name@email.com",
"isServiceAccount": true,
"loggedIn": true
}