Hi. I'm a little bit confused. The API 2 documentation says to add or edit a task you need to POST the task information as JSON. That's fine, but the documentation then goes on to say that you should pass the JSON as an HTML encoded parameter on the URL.
I don't think that is best practice when it comes to POSTing data. The JSON should be past as the content, but that doesn't seem to work.
How should I do this?
The documentation is a little misleading in that regard. We will fix this. It's difficult to write an example that shows a POST, so the examples show a GET request instead to give you an idea what the parameter names are. You should be sending the data as a POST. I don't know what language you are using, so you'll need to consult the documentation to figure out how to do a post.
One tip is to send the form with "application/x-www-form-urlencoded" encoding, not "multipart/form-data"
U Back to topic home
R Post a reply
To participate in these forums, you must be signed in.