You can send the ID of any user type except for the administrator.
Sessions created by administrators will not be counted and displayed in user session limits.
permission - login-under-user
POST api/admin/v1/user-actions/{user}/create-token
int user, user identifier
int
200 OK
OK
Successful response
401 Unauthorized
Unauthorized
Authorization token is not provided or is invalid
404 Not Found
Not Found
If the user is not found or camera synchronization is not possible for the given user
curl -k --request POST \ --url 'https://your-domainapi/admin/v1/user-actions/{user}/create-token' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --data '{ "user": 0 }'
$data = array ( 'user' => 0, ); $context = stream_context_create([ 'ssl'=>['verify_peer' => false], 'http' => [ 'method' => 'POST', 'header' => "Content-Type: application/json\r Accept: application/json", 'content'=>json_encode($data) ] ]); $result = file_get_contents('https://your-domainapi/admin/v1/user-actions/{user}/create-token', false, $context);
Please note, these errors can depend on your browser setup.
If this problem persists, please contact our support.