Enable USB on-the-go (OTG) for device

Enable or disable USB on-the-go (OTG) for a device. When OTG is enabled, the USB port of the device is enabled. The device must be connected to the cloud service.

Request
Security:
path Parameters
imei
required
string (IMEI)

The IMEI of the device. The IMEI number can be found on a sticker on the device itself or on the back of the device box.

Example: 357660101000198
Responses
200

Successful operation

400

Bad request error

401

Unauthorized error

403

Forbidden error

404

Not found error

417

Expectation failed error

500

Internal server error

post/devices/{imei}/otg-settings
Request samples
curl -i -X POST \
  https://api-prod.surfsight.net/v2/devices/:imei/otg-settings \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
Response samples
application/json
{
  • "enabled": true
}