UpdateTaskArgs
type UpdateTaskArgs = {
assigneeId?: string | null;
content?: string;
deadlineDate?: string | null;
deadlineLang?: string | null;
description?: string;
dueLang?: string | null;
dueString?: | string & {
}
| "no date"
| null;
isUncompletable?: boolean;
labels?: string[];
order?: number;
priority?: number;
} & RequireOneOrNone<{
dueDate?: string;
dueDatetime?: string;
}> & RequireAllOrNone<{
duration?: Duration["amount"];
durationUnit?: Duration["unit"];
}>;
Arguments for updating a task.
Type Declaration
| Name | Type | Description |
|---|---|---|
assigneeId? | string | null | - |
content? | string | - |
deadlineDate? | string | null | Deadline date in YYYY-MM-DD format. Use null to clear a task deadline. |
deadlineLang? | string | null | - |
description? | string | - |
dueLang? | string | null | - |
dueString? | | string & { } | "no date" | null | Natural language due date. Use "no date" to clear a due date, or null as an SDK alias for the same behavior. |
isUncompletable? | boolean | - |
labels? | string[] | - |
order? | number | Sort order of the task within its parent/project. Internally mapped to child_order in the API payload. |
priority? | number | - |
See
https://todoist.com/api/v1/docs#tag/Tasks/operation/update_task_api_v1_tasks__task_id__post