Sign in

Replace virtual device

documented

Replace an existing virtual device by its identifier.

PUT /virtual_device/{id}Virtual Deviceno implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

npx -y keychains@latest curl "https://hubsdk.flic.io/v1/virtual_device/{{$id}}" \
  -X PUT \
  -H "Accept: application/json" \
  -H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
  -H "X-Api-Key: {{FLIC_API_KEY}}" \
  -H "Content-Type: application/json" \
  -d '{"name": "{{$name}}", "state": {"on": {{$on}}, "value": {{$value}}}}'