Authentication
Posts
Add Task
POST
https://api.zira.us/public/task/
Description
Use this endpoint to create a task in Zira from an external integration flow.
| Property | Required | Type | Example | Description |
|---|---|---|---|---|
| name | Required | string | Replace inlet filter on Line 1 | Task name. |
| siteId | Required | string | 1512 | Site the task belongs to. |
| typeId | Required | string | 1 | Task type. "1" for a manual task, "3" for a task about a data source. Send it explicitly — leaving it out makes the request fail asking for deviceId. |
| deviceId | Optional | string | 43510 | Data source the task is about. Required when typeId is "3", and not allowed when typeId is "1". |
| priorityId | Optional | string | 10 | Priority — 5 Low, 10 Medium, 15 High. An unrecognised value is silently ignored. |
| statusId | Optional | string | 5 | Status. Defaults to "5" (To Do). Omit the key rather than sending null. |
| description | Optional | string | Differential pressure above threshold for two shifts. | Plain-text task description. |
| dueDate | Optional | string | 2026-06-01T12:00:00Z | When the task is due. |
| assigneeId | Optional | string | 318 | User to assign the task to. |
| toChannelId | Optional | string | 45187 | Channel the task’s feed post is created in. |
| fileIds | Optional | string[] | ["812", "813"] | Files to attach to the task. |
| formattedDescription | Optional | object[] | [{ "type": "paragraph", "children": [{ "text": "Line 1 filter" }] }] | Rich-text description as an array of nodes. A plain HTML string is rejected — use description for plain text. |
| timeSpentMandatory | Optional | boolean | false | Require time to be logged before the task can be completed. |
| noInitialComment | Optional | boolean | true | Set true to skip the automatic opening comment. Omit it rather than sending false. |