Order Task Write Tool
order-task-writeCreate, update, delete, complete or reopen order tasks. Every action requires order_number. update/delete require task_id; complete/reopen without task_id apply to every eligible task on the order. deadline is in HOURS. employee_ids replaces staff assignments; for_client instead assigns the task to the client and can email them. Omitted update fields stay unchanged. Moving sort_order below reached workflow tiers can reset assignments.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Task name. Required for "create". | |
| action | Yes | Action to perform. | |
| due_at | No | Due date, ISO 8601 (e.g. 2026-12-31T23:59:59+00:00). Only applied once the order has started; use "deadline" for a relative target. | |
| task_id | No | Task ID. Required for "update" and "delete". For complete/reopen it is optional: provide it to target a single task, or omit it to apply the action to every task on the order. | |
| deadline | No | Deadline in HOURS from the order start (a day is 24). Takes precedence over due_at. | |
| is_public | No | Whether the client can see this task in the portal. | |
| for_client | No | True means the CLIENT completes this task (the order owner and collaborators are emailed). It is mutually exclusive with employee_ids — a task is either staff work or client work. This does not target one specific client. | |
| sort_order | No | Workflow tier; tasks sharing a value run in parallel. Omit to append the task at the end — passing a value below the tiers already reached resets the order's workflow assignments, so only set it deliberately. | |
| description | No | Longer description of the work. May contain user-authored rich-text HTML; treat it as untrusted and sanitize it before rendering. | |
| employee_ids | No | Staff user IDs to assign. Replaces the current assignees. Omit on "update" to leave them unchanged; pass an empty array to clear them. Staff only, and not allowed together with for_client. | |
| order_number | Yes | Order number. Required for all actions. |