Update Status via Deluge

Update Status via Deluge

Hello,

Im trying to update some tasks status via API but its not working.

heres the too codes i've already trying (besides a lot more):
  1. values_map = Map();
  2. values_map.put("status",input.Status);
  3. response = zoho.projects.update("roboplan",input.Project_ID,"tasks",input.Task_ID,values_map);
  4. info response;
The second i've tryed was this: (because i've noticed that "status" haves more maps inside.
  1. values_map = Map();
  2. values_map.put("name",input.Status);
  3. status_map = {"status":values_map};
  4. response = zoho.projects.update("roboplan",input.Project_ID,"tasks",input.Task_ID,status_map );
  5. info response;
Can somebody help me?

heres an exemple of the output:
"status":{"name":"0 - Não Iniciada","id":"67014000000033001","type":"open","color_code":"#878b8e"}

Thanks