Board Thread:The Quarters - Q & A/@comment-213.186.50.98-20141015143110

Hi

I'm trying to complete a todo task through the api (PUT /user/tasks/{id}) But it don't work.

Ex :

I retrieve the task :

{'collapseChecklist': False, 'text': 'title', 'attribute': 'str', 'challenge': {}, 'tags': {}, 'dateCreated': '2014-10-14T11:18:07.939Z', 'value': -1, 'id': 'some_uuid_not_sure_if_ok_to_share', 'completed': False, 'checklist': [], 'type': 'todo', 'notes': '', 'priority': 1}

I modify the completed value and add dateCompleted :

{"dateCreated": "2014-10-14T11:18:07.939Z", "priority": 1, "checklist": [], "completed": false, "tags": {}, "type": "todo", "text": "title", "collapseChecklist": false, "challenge": {}, "value": -1, "id": "some_uuid_not_sure_if_ok_to_share", "attribute": "str", "notes": "", "dateCompleted": "2014-10-15T15:27:08.053243"}

but a PUT request on /api/v2/user/tasks/id_of_the_task

dont complete it and just return :

{"text":"title","challenge":{},"attribute":"str","priority":1,"value":-1,"tags":{},"notes":"","dateCreated":"2014-10-14T11:18:07.939Z","id":"some_uuid_not_sure_if_ok_to_share","checklist":[],"collapseChecklist":false,"completed":false,"type":"todo"}

What did I do wrong on the task I put ?

thanks for the help. 