Creating task using Makerlog API

Hi,

I've obtained an access token with "tasks:write" scope. Create a task doesn't work though. Instead of getting a "201:Created" I get a "200:OK", and the result is a list of recent tasks instead of my new task.

Here's what I do:

curl --request POST \ --url https://api.getmakerlog.com/tasks \ --header 'authorization: Bearer my-access-token \ --header 'content-type: application/json' \ --data '{ "content": "#tag test 123", "done": false, "in_progress": true }'

What am I doing wrong?

Erik van Eykelen Author

Posting example again this time using markdown:

curl --request POST \
  --url https://api.getmakerlog.com/tasks \
  --header 'authorization: Bearer <my-access-token>' \
  --header 'content-type: application/json' \
  --data '{
    "content": "#tag test 123",
    "done": false,
    "in_progress": true
}'
0 Likes
Erik van Eykelen Author

Geez, it works if I append / to /tasks/ 😜- probably documented but utterly confusing.

0 Likes

Yeah! :P Sorry for that.

0 Likes

Please sign in to leave a comment.