+ Add Question

Problems with sync and "project_update"

After some time, let me try again:

I am using the API, and my question is very simple:

Over this request, what is the project ID (ON THE TODOIST SERVER) am I updating?

{
"type": "project_update", #type of requisition, update
"timestamp": 1326467500573, #timestamp of when the requisition was made (to avoid duplicated requests
"args": {
"id": "$1326467493134", #some temporary id, that will be replaced at the response of this request through the filed "TempIdMapping"
"name": "Test new", #updated name
"item_order": 5, #updated order
"color": 2 # updated color
}

All responses

David Trey staff
Replied on Jul 11, 2014 - 18:49 UTC

Richard,

I've passed it to our dev, I'll let you know when he replies.

Though, please check this part of the documentation and let me know if that's helpful:

"In the above example you can see that project_add command has a temp_id property - - which specifies which temporary id this new project has. project_update command later references this temporary id. The API will automatically resolve these ids.

Additionally /TodoistSync/v5.3/sync will return the real id of $1326467493134 in the result. Remember to update your local model with these real ids e.g.:

{"$1326467493134": 21314212}

While the system remembers temporary ids and their mappings to real ids, it's important to use real ids when they are available to you (typically after a sync). This is important since the API only remembers the last 500 temporary ids for each user!"


Best regards,
David

Richard Lopes
Replied on Jul 12, 2014 - 01:39 UTC

(:

Thank you by passed it to your devs! And Thank you by citing documentation!

The question is exactly that: I am not adding a project and using a temporary id. I just want to update a project using a real ID.
It is an old question that I am trying (harldy) to solve! Please help me! :)

Richard Lopes
Replied on Jul 13, 2014 - 13:19 UTC

Sorry! Problem was solved! Thank you!