From 240671b84af2cd12e8008429b92d0d1f06d7c39c Mon Sep 17 00:00:00 2001 From: Remora Date: Mon, 9 Feb 2026 15:50:11 +0100 Subject: [PATCH] Fix: Use correct endpoint POST /api/v1/task (singular) for task creation --- scripts/quick-add.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/quick-add.sh b/scripts/quick-add.sh index e0819fa..ce5eccf 100755 --- a/scripts/quick-add.sh +++ b/scripts/quick-add.sh @@ -19,19 +19,19 @@ if [ -z "$API_KEY" ]; then exit 1 fi -# Add to inbox (no project) +# Create task via POST /api/v1/task (singular endpoint) response=$(curl -s -X POST \ -H "Authorization: Bearer $API_KEY" \ -H "Content-Type: application/json" \ -d "{\"name\":\"$task_name\"}" \ - "$API_URL/tasks") + "$API_URL/task") -task_id=$(echo "$response" | jq -r '.id // empty') +task_uid=$(echo "$response" | jq -r '.uid // empty') -if [ -n "$task_id" ]; then - echo "✅ Added to Tududi inbox: $task_name" +if [ -n "$task_uid" ]; then + echo "✅ Added to Tududi: $task_name (uid: $task_uid)" else echo "⚠️ Failed to add task" - echo "$response" | jq . + echo "Response: $response" exit 1 fi