3.7 Licence

Získání aktuálního nastavení

Získá aktuální nastavení licence zařízení. 

URL:

https://{{ip_addr}}/api/v1/license

HTTP Metoda:

GET

Response code:

Standardní HTTP response code, ošetřuje syntaktické chyby.

Response data:

{
    "data": {
        "features": {
            "isAppInstalationAllowed": true,
            "isHttpApiAllowed": true,
            "isStockLauncherAllowed": false
        },
        "key": "EJF3A-7SGBQ-UTGYC-VWV38-MKPGG",
        "remainingHours": 0,
        "state": 2
    }
}

Nastavení sekce

URL:

https://{{ip_addr}}/api/v1/license

HTTP Metoda:

POST

Response code:

Standardní HTTP response code, ošetřuje syntaktické chyby.

Request body:
 {
    "key": "<string>",
    "remainingHours": "<integer>",
    "state": "<integer>",
    "features": {
        "isHttpApiAllowed": "<boolean>",
        "isStockLauncherAllowed": "<boolean>",
        "isAppInstalationAllowed": "<boolean>"
    }
}

Response data:

 

{
    "data": {
        "features": {
            "isAppInstalationAllowed": true,
            "isHttpApiAllowed": true,
            "isStockLauncherAllowed": false
        },
        "key": "EJF3A-7SGBQ-UTGYC-VWV38-MKPGG",
        "remainingHours": 0,
        "state": 2
    }
}