Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions tests/test_api_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,7 @@ async def test_update_task(
"description": "Updated description",
"labels": ["label1", "label2"],
"priority": 2,
"order": 3,
}
updated_task_dict = default_task.to_dict() | args

Expand Down
3 changes: 3 additions & 0 deletions todoist_api_python/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,7 @@ def update_task(
due_date: date | None = None,
due_datetime: datetime | None = None,
assignee_id: str | None = None,
order: int | None = None,
day_order: int | None = None,
collapsed: bool | None = None,
duration: Annotated[int, Ge(1)] | None = None,
Expand All @@ -378,6 +379,7 @@ def update_task(
:param due_date: The due date as a date object.
:param due_datetime: The due date and time as a datetime object.
:param assignee_id: User ID to whom the task is assigned.
:param order: The order of task in the project or section.
:param day_order: The order of the task inside Today or Next 7 days view.
:param collapsed: Whether the task's sub-tasks are collapsed.
:param duration: The amount of time the task will take.
Expand All @@ -401,6 +403,7 @@ def update_task(
format_datetime(due_datetime) if due_datetime is not None else None
),
assignee_id=assignee_id,
order=order,
day_order=day_order,
collapsed=collapsed,
duration=duration,
Expand Down
3 changes: 3 additions & 0 deletions todoist_api_python/api_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,7 @@ async def update_task(
due_date: date | None = None,
due_datetime: datetime | None = None,
assignee_id: str | None = None,
order: int | None = None,
day_order: int | None = None,
collapsed: bool | None = None,
duration: Annotated[int, Ge(1)] | None = None,
Expand All @@ -398,6 +399,7 @@ async def update_task(
:param due_date: The due date as a date object.
:param due_datetime: The due date and time as a datetime object.
:param assignee_id: User ID to whom the task is assigned.
:param order: The order of task in the project or section.
:param day_order: The order of the task inside Today or Next 7 days view.
:param collapsed: Whether the task's sub-tasks are collapsed.
:param duration: The amount of time the task will take.
Expand All @@ -421,6 +423,7 @@ async def update_task(
format_datetime(due_datetime) if due_datetime is not None else None
),
assignee_id=assignee_id,
order=order,
day_order=day_order,
collapsed=collapsed,
duration=duration,
Expand Down