create_task
Create a new task in your Nextcloud Tasks list, with optional due dates, priorities, subtasks, and tags. Returns the stored task with its new uid.
Instructions
Create a task. The list may be omitted when the account has one task list or NEXTCLOUD_DEFAULT_TASK_LIST is set. Returns the task as stored, including its new uid.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| due | No | Due date: "YYYY-MM-DD" for a whole day, "YYYY-MM-DDTHH:MM:SS" for a local time, or "...Z" for UTC. null removes it. | |
| list | No | Task list uri or display name. | |
| start | No | Start date, same format as due. null removes it. | |
| pinned | No | Nextcloud's pinned flag. | |
| status | No | Defaults to NEEDS-ACTION on a new task. | |
| summary | Yes | Task title. | |
| location | No | Free-text location. null removes it. | |
| priority | No | RFC 5545 priority: 1 is highest, 9 is lowest, 0 or null means none. The Tasks UI shows 1-4 as high, 5 as medium, 6-9 as low. | |
| parentUid | No | uid of the parent task, making this a subtask of it. Must be in the same list. null detaches it to the top level. | |
| sortOrder | No | Manual sort position within the list. | |
| categories | No | Tags, replacing any already set. null or [] removes them all. | |
| description | No | Longer notes. null or "" removes them. | |
| dueTimezone | No | IANA zone for a local due time, e.g. "Europe/London". Stored as the equivalent UTC instant. Not valid with a whole-day date or a "Z" time. | |
| hideSubtasks | No | Collapse this task's subtasks in the Tasks UI. | |
| startTimezone | No | IANA zone for a local start time. | |
| percentComplete | No | Progress, 0-100. Set automatically to 100 when status becomes COMPLETED. |