Skip to main content
POST
/
device
/
hlc
/
play
Play Loop
curl --request POST \
  --url https://api.getmelody.io/device/hlc/play \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "velocity": 0.5,
  "low_limit": 0.5,
  "high_limit": 0.5
}
'

Authorizations

Authorization
string
header
required

Device Token for SDK operations. Obtain via: GET /api/haptics/device/device_token Format: {device_id}-{1|2}-{random} Note: ApiToken (from POST /device/otp/confirm) can also be used for most SDK endpoints.

Body

application/json

The haptic loop control settings of the device.

velocity
number<float>

The velocity of the loop.

Example:

0.5

low_limit
number<float>

The low limit of the loop.

Example:

0.5

high_limit
number<float>

The high limit of the loop.

Example:

0.5

Response

200

OK