Dispatch form (JSON)
documentedPush a form to a device (JSON payload).
POST /api/v2/devices/{device_identifier}/dispatches.jsonDispatchesno 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://api.devicemagic.com/api/v2/devices/{{$device_identifier}}/dispatches.json" \
-X POST \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"dispatch": {"form_id": {{$form_id}}, "title": "{{$title}}", "description": "{{$description}}", "prefill": {"field_1": "{{$field1}}", "field_2": "{{$field2}}"} } }'