Create destination
documentedCreate a new destination for a form.
POST /api/forms/{form_id}/destinations.jsonDestinationsno 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/forms/{{$form_id}}/destinations.json" \
-X POST \
-H "Authorization: Basic $(echo -n '{{DEVICEMAGIC_API_KEY}}:x' | base64)" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"destination": {"description": "{{$description}}", "format_selection": "{{$format_selection}}", "transport_selection": "{{$transport_selection}}"}, "email_transport": {"to_addresses": "{{$to_addresses}}"}}'