26.09 26.06 26.05 25.12
26.09 26.06 26.05 25.12 Russian English

Check analytics license management

Check analytics license management for a user

POST  /api/v1/billing/user/manage/licenses/check

Checks whether analytics licenses can be managed for a user identified by login. The response includes only the licenses specified in the request.

JSON
{
    "login": "test@mail.com",
    "analytic_l1": null,
    "analytic_l2": 1,
    "analytic_l3": 0
}

Method parameters

string login, User login


int analytic_l1, Number of level 1 license cases


int analytic_l2, Number of level 2 license cases


int analytic_l3, Number of level 3 license cases

200  OK

Returns a list of licenses and whether they can be edited

JSON
{
    "analytic_l1": false,
    "analytic_l2": true,
    "analytic_l3": true
}

422  Unprocessable Entity

Returns a JSON error object.

For more information, see General information > Validation.

JSON
{
    "message": "No informative message is provided here",
    "errors": {
        "any_key": [
            "The reason for the error is described here"
        ]
    }
}
cURL
Bash
curl -k --request POST \
	--url 'https://your-domain/api/v1/billing/user/manage/licenses/check' \
	--header 'Content-Type: application/json' \
	--header 'Accept: application/json' \
	--data '{
    "login": "string",
    "analytic_l1": 0,
    "analytic_l2": 0,
    "analytic_l3": 0
}'
PHP
PHP
$data = array (
  'login' => 'string',
  'analytic_l1' => 0,
  'analytic_l2' => 0,
  'analytic_l3' => 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-domain/api/v1/billing/user/manage/licenses/check', false, $context);