Skip to main content
POST
/
device
/
hsc
/
upload
Upload Haptic Script
curl --request POST \
  --url https://api.hapticsconnect.com/device/hsc/upload \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "My Haptic Script",
  "content": "{\"version\":\"1.0\",\"inverted\":false,\"range\":100,\"actions\":[{\"pos\":0,\"at\":0},{\"pos\":100,\"at\":1000}]}"
}
'
{
  "message": "content is required"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
name
string
required

The name of the funscript

Example:

"My Haptic Script"

content
string
required

The funscript content as a JSON string

Example:

"{\"version\":\"1.0\",\"inverted\":false,\"range\":100,\"actions\":[{\"pos\":0,\"at\":0},{\"pos\":100,\"at\":1000}]}"

Response

OK