Legend

Forum

Unread topics or posts

Topic

Unread posts

Locked

Announcement

Forums > Developers

Errors on individual tasks when adding/editing/deleting



AuthorMessage
andreas.remar

Posted: Sep 21, 2012
Score: 0



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 Admin
Posted: Sep 21, 2012
Score: 0



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



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



Oops, replied from my "toodledo testing" account. :-)
Jake

Toodledo Admin
Posted: Sep 21, 2012
Score: 0



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



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 Admin
Posted: Sep 22, 2012
Score: 0



Thanks for the suggestion. We will put this on our to-do list.
You cannot reply yet


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



Toodledo Forums > Developers

Contact Us | Blog | API | Jobs | Press | Documentation | Forums Privacy | Terms | Copyright © 2004-2014