Skip to main content
Skip table of contents

License management

Provides management of user licenses by user login.

If all 3 analytics parameters are null or 0, then this user will not have access to analytics

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

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

204

Successful response

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' \
--header 'Accept:application/json' \
--header 'Content-Type: application/json \
--data-raw '{
    "login": "user@mail.com",
    "analytic_l1": null,
    "analytic_l2": 1,
    "analytic_l3": 0
}'
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.