Skip to content

Empty response with curl #5372

Closed Answered by madic-creates
madic-creates asked this question in Q&A
Discussion options

You must be logged in to vote

I found the problem. Sending the ID is not optional (but still works / creates a task). So I extended the curl command:

curl -u "jsonrpc:KEY" -d \
'{"jsonrpc": "2.0","method": "createTask","id": '"$(date +%s%3N)"',"params": {"owner_id": 0,"creator_id": 2,"date_due": "","description": "TEST","category_id": 0,"score": 0,"title": "TESET","project_id": 4,"color_id": "red","column_id": 13,"recurrence_status": 0,"recurrence_trigger": 0,"recurrence_factor": 0,"recurrence_timeframe": 0,"recurrence_basedate": 0}}' \
https://kanboard.example.tld/jsonrpc.php

date +%s%3N outputs the epoch number in milliseconds, which greatly reduces the risk of an overlapping id.

Now I get the response and can use i…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by madic-creates
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant