Create form
documentedCreate a new form (XML or JSON definition).
POST /organizations/{organization_id}/formsFormsno 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/organizations/{{$organization_id}}/forms" \
-X POST \
-u "{{DEVICEMAGIC_API_TOKEN}}:x" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{"type": "root", "children": [ {"identifier": "Free_Text_Question", "title": "{{$question_title}}", "autoIdentifier": true, "type": "text"} ], "title": "{{$form_title}}", "description": "{{$form_description}}" }'