+ Add Question

API: Text regarding "priority" appears to be backwards

The API text (http://todoist.com/API) appears to be backwards when talking about Priorities.

For example, "priority: The priority of the task (a number between 1 and 4 - 1 for very urgent and 4 for natural)."

This seems to suggest that Priority 1 should be "very urgent", eg "red" on the website. The coincides with how the todoist.com website represents Priority 1: as Red.

However, the object model for an item, like what you get with getUncompletedItems, shows the opposite. Priority 1 items on todoist.com are returned as {... "priority": 4 }.

You also need to use these inverted priorities with the API.

Please don't change the API as I'm sure people are relying on these priorities, but the documentation should be fixed.

All responses

David Trey  staff
Replied on Sep 08, 2011 - 17:45 UTC

Hello Nic,

thank you for pointing it out and sorry for the confusion.

The text has been edited and now it says:

"priority: The priority of the task (a number between 1 and 4, 4 for very urgent and 1 for natural)."

Best regards,