250929_LSS100100/LSS100200_SW_03.0

Enabling the REST API

After you install the Management plugin, the Enable API feature is disabled by default. You can enable it through the plugin user interface or by calling a specific route.

Enabling the API via User Interface (Admin Access Required)

  1. Access the Management plugin user interface.

  2. Navigate to the DEVICE API tab.

  3. Slide the Enable API button to the right to enable the REST API.

Enabling via REST API (Admin Access Required)

Use the following curl command to enable the REST API:

curl --location --request PATCH 'https://<IP>/apps/data/management/api/settings/deviceAPI/index.lp' \
--header 'Referer: https://<IP>/apps/data/management/' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic BASIC_TOKEN_ADMIN' \
--data '{
    "enabled": true
}'

QR Code is a registered trademark of DENSO WAVE INCORPORATED in Japan and other countries.

Was this helpful?