Update virtual device
documentedPartially update fields of a virtual device.
PATCH /virtual_device/{id}Virtual Deviceno implementation yet0 runsNo 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 PATCH \
-H "Authorization: Bearer {{FLIC_API_KEY}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"name": "{{$name}}", "type": "{{$type}}", "state": {"value": {{$value}}, "unit": "{{$unit}}", "timestamp": "{{$timestamp}}"}}'