Summary
Update an account.
Description
Update an account
Route
PATCH /authorization/accounts/:accountId
Roles
admin
Parameters
DetailsExampleSchema
Name |
Type |
Required |
Description |
accountId |
string |
yes |
The individual account to update. |
updates |
object |
yes |
An object containing the requested updates |
Copied to Clipboard
{
"updates": {
"inactive": true,
"email": "name@email.com",
"assignedRoles": [
{
"roleId": "5cb7b531d06cceb89fd21b1c"
},
{
"roleId": "5cb7b531d06cceb89fd21b1c"
}
],
"memberOf": [
{
"aaaManaged": false,
"groupId": "5cb7b531d06cceb89fd21b1c"
},
{
"aaaManaged": false,
"groupId": "5cb7b531d06cceb89fd21b1c"
},
{
"aaaManaged": true,
"groupId": "5cb7b531d06cceb89fd21b1c"
}
]
}
}
Return
DetailsExampleSchema
Name |
Type |
Description |
result |
object |
The output of the account update. |
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": false,
"groupId": "5cb7b531d06cceb89fd21b1c"
},
{
"aaaManaged": true,
"groupId": "5cb7b531d06cceb89fd21b1c"
}
],
"assignedRoles": [
{
"roleId": "5cb7b531d06cceb89fd21b1c"
},
{
"roleId": "5cb7b531d06cceb89fd21b1c"
},
{
"roleId": "5cb7b531d06cceb89fd21b1c"
},
{
"roleId": "5cb7b531d06cceb89fd21b1c"
},
{
"roleId": "5cb7b531d06cceb89fd21b1c"
}
],
"inactive": true,
"gitTokens": {
"GitHub": "in Lorem enim",
"GitLab": "mollit anim officia non"
},
"lastLogin": "2018-08-02T15:56:12.912Z",
"sso": false,
"nameID": "id magna nulla eiusmod",
"_meta": {
"created": "2018-08-02T15:56:12.912Z",
"updated": "2018-08-02T15:56:12.912Z"
},
"email": "name@email.com",
"isServiceAccount": false,
"loggedIn": true
}
}