Create task
formsonfire_create_taskWRITE: create a task for a field worker with one form to fill out, optionally with prefilled answers. By default it remains a draft; send_immediate=true sends it and notifies the worker. Identify the worker by email, user id or external id (list_users). The form is identified by its external id (formsonfire_get_form shows field names for the prefilled answers). Requires confirm=true and a due time. Not idempotent: calling twice creates two tasks. POST /task.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| icon | No | Task icon name (vendor icon list), e.g. Clock. | |
| name | No | Task name shown on the device, e.g. 'Site inspection - Acme'. | |
| answers | No | Prefilled answers: field data name and value. | |
| confirm | Yes | Set true only after the user approved creating the task and any requested notification. | |
| user_id | No | Id (GUID) of the worker the task is assigned to. | |
| start_by | No | When the task should be started (ISO 8601 UTC). | |
| user_email | No | Email of the worker (user) the task is assigned to. | |
| complete_by | Yes | Due time (ISO 8601 UTC). | |
| instruction | No | Instruction shown for this form activity. | |
| send_immediate | No | Notify the worker right away (vendor default applies when omitted). | |
| additional_info | No | Free-text instructions shown with the task. | |
| form_external_id | Yes | External id of the form the worker has to fill out. | |
| user_external_id | No | External id of the worker the task is assigned to. |