Fix: Use /api/v1/inbox endpoint (POST content field) instead of /task
This commit is contained in:
@@ -19,12 +19,12 @@ if [ -z "$API_KEY" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Create task via POST /api/v1/task (singular endpoint)
|
||||
# Add to inbox via POST /api/v1/inbox (preferred for quick capture)
|
||||
response=$(curl -s -X POST \
|
||||
-H "Authorization: Bearer $API_KEY" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d "{\"name\":\"$task_name\"}" \
|
||||
"$API_URL/task")
|
||||
-d "{\"content\":\"$task_name\"}" \
|
||||
"$API_URL/inbox")
|
||||
|
||||
task_uid=$(echo "$response" | jq -r '.uid // empty')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user