todo task set¶
Update a task in a Microsoft To Do task list
Usage¶
m365 todo task set [options]
Options¶
-i, --id <id>
- The id of the task to update
-t, --title [title]
- Sets the task title
-s, --status [status]
- Sets the status of the task. Allowed values
notStarted
,inProgress
,completed
,waitingOnOthers
,deferred
--listName [listName]
- The name of the task list in which the task exists. Specify either
listName
orlistId
, not both --listId [listId]
- The id of the task list in which the task exists. Specify either
listName
orlistId
, not both -h, --help
- output usage information
--query [query]
- JMESPath query string. See http://jmespath.org/ for more information and examples
-o, --output [output]
- Output type.
json,text
. Defaulttext
--verbose
- Runs command with verbose logging
--debug
- Runs command with debug logging
Examples¶
Update a task with title New task to Update doco in Microsoft To Do tasks list with the name My task list
m365 todo task set --id "AAMkADU3Y2E0OTMxLTllYTQtNGFlZS1hZGM0LWI1NjZjY2FhM2RhMABGAAAAAADhr7P77n9xS6PdtDemRwpHBwCin1tvQMXzRKN1hQDz2S3VAAAXXsleAACin1tvQMXzRKN1hQDz2S3VAAAXXzr9AAA=" --title "Update doco" --listName "My task list"
Update a task with status from notStarted to inProgress in Microsoft To Do tasks list with the name My task list
m365 todo task set --id "AAMkADU3Y2E0OTMxLTllYTQtNGFlZS1hZGM0LWI1NjZjY2FhM2RhMABGAAAAAADhr7P77n9xS6PdtDemRwpHBwCin1tvQMXzRKN1hQDz2S3VAAAXXsleAACin1tvQMXzRKN1hQDz2S3VAAAXXzr9AAA=" --status "inProgress" --listName "My task list"