Overview

The Update a user status API enables or disables a user account.

You can use the Get Users API to find the user ID (id).

You can use the Get Accounts API to find the account ID (id).


Sample request

POST https://api.armor.com/users/status

REQUEST:
{
 "id": 8,
 "isEnabled": true,
 "accountId": 2,
 "email": "john.smith@example.com"
}

Input

API Call / URLMethod / Type
/users/statusPOST


ParameterDescriptionFormatRequired or optionalExample
idThe ID of the userIntegerRequired8
isEnabledThe enabled status of the userBoolRequiredtrue
accountIDID of the accountIntegerRequired2
emailThe email (username) of the userStringRequiredjohn.smith@example.com



Sample return

StatusResponse
200
{
"id": 5718,
"isEnabled": false,
"accountId": 1057,
"email": null,
"userInAccounts": 0,
"userPerformingAction": 0
}
400
"Invalid Request"