ForumsDevelopersErrors on individual tasks when adding/editing/deleting


Errors on individual tasks when adding/editing/deleting
Author Message
andreas.remar

Posted: Sep 21, 2012
Score: 0 Reference
Hello!

Per the API specification for tasks, when adding, editing, or deleting tasks, "any errors on individual tasks [...] will be output inline with the returned tasks".

I can't seem to find how these errors will actually look like. What's the format like?

Regards,
Andreas
Jake

Toodledo Founder
Posted: Sep 21, 2012
Score: 0 Reference
If you look at the very bottom of the API page, it will show you what an error looks like.

http://api.toodledo.com/2/tasks/index.php

You could also intentionally trigger an error to see what happens.
andreas.remar.testing

Posted: Sep 21, 2012
Score: 0 Reference
Hmm, but those are only the general error codes, right? E.g. it says that an error code looks like: {"errorCode":1,"errorDesc":"Empty key"}, which is all fine and good, but it doesn't say how error messages that are inlined looks like.

Sure, I can make a request that fails for some tasks and have a look, but it would be nicer to have it in the docs.

Thanks!
-Andreas
andreas.remar.testing

Posted: Sep 21, 2012
Score: 0 Reference
Oops, replied from my "toodledo testing" account. :-)
Jake

Toodledo Founder
Posted: Sep 21, 2012
Score: 0 Reference
The error will look line that inline with the success responses from the server. So if you send 3 tasks, and the middle one fails, it would be success, fail, success.
andreas.remar

Posted: Sep 22, 2012
Score: 0 Reference
Ok, I'll do a request that fails and have a look.

I still think it would be good to have an example of inlined error messages in the API docs, though.

-Andreas
Jake

Toodledo Founder
Posted: Sep 22, 2012
Score: 0 Reference
Thanks for the suggestion. We will put this on our to-do list.
You cannot reply yet

U Back to topic home

R Post a reply

To participate in these forums, you must be signed in.