From 6f642199aec82b3ce534b4acc062abad35403621 Mon Sep 17 00:00:00 2001 From: romanwrites <60896644+romanwrites@users.noreply.github.com> Date: Sat, 18 Mar 2023 04:02:12 +0300 Subject: [PATCH] upd create-task.template.sh fix add new task api call: https://developer.todoist.com/rest/v2#adding-a-new-task --- commands/apps/todoist/create-task.template.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/commands/apps/todoist/create-task.template.sh b/commands/apps/todoist/create-task.template.sh index 58b840098..ec44c264c 100755 --- a/commands/apps/todoist/create-task.template.sh +++ b/commands/apps/todoist/create-task.template.sh @@ -27,9 +27,9 @@ fi TASK="$1" if [[ $TASK != "" ]]; then - curl "https://api.todoist.com/sync/v8/quick/add" \ - -X -S POST \ - --data '{"text": "'"$TASK"'"}' \ + curl "https://api.todoist.com/rest/v2/tasks" \ + -X POST \ + --data '{"content": "'"$TASK"'"}' \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $API_TOKEN"