Account status#
Checking account status#
GET https://login.company.com/blitz/api/v3/users/{subjectId}/state
Checking account status:
presence of blocking due to inactivity;
presence of a ban on blocking due to inactivity.
Required permissions: blitz_api_usec
or blitz_api_sys_usec
.
Examples
GET /blitz/api/v3/users/d2580c98-e584-4aad-a591-97a8cf45cd2a/state HTTP/1.1
Authorization: Bearer cNwIXatB0wk5ZHO0xG5kxuuLubesWcb_yPPqLOFWDuwzMDc0Nz
Cache-Control: no-cache
{
"name": "initial"
}
{
"name": "active",
"checkedOn": 1688106755
}
Note
The checkedOn
parameter stores the timestamp of the last status check.
{
"name": "inactivityLock",
"on": 1688106646
}
Note
The on
parameter stores the blocking time.
{
"name": "untouchable",
"till": 1689106755
}
Note
If the till
parameter is missing, then the account cannot be blocked at all due to inactivity.
Changing the account status#
POST https://login.company.com/blitz/api/v3/users/{subjectId}/state
Changing the status of the user account.
Required permissions: blitz_api_sys_usec_chg
.
Possible parameters:
name
is the assigned state. You can only assign theuntouchable
state;till
is an optional parameter in which you can specify the time until which the account is assigned theuntouchable
status. To cancel theuntouchable
status, you can assign the current time to thetill
parameter.
In case of a successful call, HTTP 204 No Content
.
Example
POST /blitz/api/v3/users/d2580c98-e584-4aad-a591-97a8cf45cd2a/state HTTP/1.1
Authorization: Bearer cNwIXatB0wk5ZHO0xG5kxuuLubesWcb_yPPqLOFWDuwzMDc0Nz
Content-Type: application/json
{
"name": "untouchable",
"till": 1689106755
}