Breadcrumbs

Check license management

Checks the ability to manage user licenses by user login.

The response will contain only those licenses that were specified in the request.




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

Headers

Accept

application/json

Body

json

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

loginrequired

string

User login

analytic_l1required

int

Number of cases of the license Level 1

analytic_l2required

int

Number of cases of the license Level 2

analytic_l3required

int

Number of cases of the license Level 3

Response




200

Returns a list of licenses and the ability to edit them

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




422

Returns a JSON object with an error. Validation

JSON
{
    "message": "There will be no informative message here",
    "errors": {
        "any_key": [
            "The reason for the error will be described here."
        ]
    }
}

Example

JSON
curl -k --location --request POST 'https://vms.local/api/v1/billing/user/manage/licenses/check' \
--header 'Accept:application/json' \
--header 'Content-Type: application/json \
--data-raw '{
    "login": "user@mail.com",
    "analytic_l1": null,
    "analytic_l2": 1,
    "analytic_l3": 0
}'