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": "minim aliquip dolore aliqua veniam",
"GitLab": "qui in culpa ullamco"
},
"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": true,
"groupId": "5cb7b531d06cceb89fd21b1c"
},
{
"aaaManaged": true,
"groupId": "5cb7b531d06cceb89fd21b1c"
},
{
"aaaManaged": false,
"groupId": "5cb7b531d06cceb89fd21b1c"
},
{
"aaaManaged": false,
"groupId": "5cb7b531d06cceb89fd21b1c"
}
],
"assignedRoles": [
{
"roleId": "5cb7b531d06cceb89fd21b1c"
},
{
"roleId": "5cb7b531d06cceb89fd21b1c"
}
],
"inactive": false,
"gitTokens": {
"GitHub": "tempor sint occaecat",
"GitLab": "consectetur occaecat amet"
},
"lastLogin": "2018-08-02T15:56:12.912Z",
"sso": true,
"nameID": "laboris elit officia",
"_meta": {
"created": "2018-08-02T15:56:12.912Z",
"updated": "2018-08-02T15:56:12.912Z"
},
"email": "name@email.com",
"isServiceAccount": false,
"loggedIn": false
}
}