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": "officia dolor",
"GitLab": "ex velit sunt"
},
"email": "name@email.com"
}
}
Return
DetailsExampleSchema
Name |
Type |
Description |
result |
object |
Updated account document for current user |
Copied to Clipboard
{
"status": "Created",
"message": "A sample success message",
"data": {
"provenance": "Local AAA",
"username": "john_doe",
"firstname": "John",
"memberOf": [
{
"aaaManaged": false,
"groupId": "5cb7b531d06cceb89fd21b1c"
},
{
"aaaManaged": false,
"groupId": "5cb7b531d06cceb89fd21b1c"
}
],
"assignedRoles": [
{
"roleId": "5cb7b531d06cceb89fd21b1c"
}
],
"inactive": true,
"gitTokens": {
"GitHub": "id ea anim",
"GitLab": "exercitation esse reprehenderit do"
},
"lastLogin": "2018-08-02T15:56:12.912Z",
"sso": false,
"nameID": "aute dolore",
"_meta": {
"created": "2018-08-02T15:56:12.912Z",
"updated": "2018-08-02T15:56:12.912Z"
},
"email": "name@email.com",
"isServiceAccount": false,
"loggedIn": false
}
}