Summary
Updates the user settings for the active user
Description
Updates the user settings for the active user
Route
PATCH /user/settings
Roles
Parameters
DetailsExampleSchema
Name |
Type |
Required |
Description |
updates |
object |
yes |
The changes requested to the active user's settings |
Copied to Clipboard
{
"updates": {
"gitTokens": {
"GitHub": "nulla et adipisicing dolore",
"GitLab": "nisi ut fugiat"
},
"email": "name@email.com"
}
}
Return
DetailsExampleSchema
Name |
Type |
Description |
result |
object |
Updated account document for current user |
Copied to Clipboard
{
"status": "OK",
"message": "A sample success message",
"data": {
"provenance": "Local AAA",
"username": "john_doe",
"firstname": "John",
"memberOf": [
{
"aaaManaged": true,
"groupId": "5cb7b531d06cceb89fd21b1c"
},
{
"aaaManaged": false,
"groupId": "5cb7b531d06cceb89fd21b1c"
},
{
"aaaManaged": true,
"groupId": "5cb7b531d06cceb89fd21b1c"
},
{
"aaaManaged": true,
"groupId": "5cb7b531d06cceb89fd21b1c"
}
],
"assignedRoles": [
{
"roleId": "5cb7b531d06cceb89fd21b1c"
},
{
"roleId": "5cb7b531d06cceb89fd21b1c"
},
{
"roleId": "5cb7b531d06cceb89fd21b1c"
}
],
"inactive": true,
"gitTokens": {
"GitHub": "aliquip aliqua sunt in",
"GitLab": "nulla Excepteur deserunt enim"
},
"lastLogin": "2018-08-02T15:56:12.912Z",
"sso": true,
"nameID": "voluptate magna fugiat",
"_meta": {
"created": "2018-08-02T15:56:12.912Z",
"updated": "2018-08-02T15:56:12.912Z"
},
"email": "name@email.com",
"isServiceAccount": false,
"loggedIn": true
}
}