Replies: 1 comment
-
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 it to get the url via getTask. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to create tasks with the createTask function via curl and use the json response to get the url for the task via getTask.
But after issuing the curl command for createTask, the response is empty. There is no json body returned. But the task is created. I can see it on the dashboard.
According to the docs, there should be at least the id returned.
Any idea what I may be missing?
nginx version: 1.24.0
php version: 7.4.33
kanboard version: 1.2.33
No docker installation
curl command:
Beta Was this translation helpful? Give feedback.
All reactions