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

      Zoho Developer Community









                                Zoho Desk Resources

                                • Desk Community Learning Series


                                • Digest


                                • Functions


                                • Meetups


                                • Kbase


                                • Resources


                                • Glossary


                                • Desk Marketplace


                                • MVP Corner


                                • Word of the Day



                                    Zoho Marketing Automation


                                            Manage your brands on social media



                                                  Zoho TeamInbox Resources

                                                    Zoho DataPrep Resources



                                                      Zoho CRM Plus Resources

                                                        Zoho Books Resources


                                                          Zoho Subscriptions Resources

                                                            Zoho Projects Resources


                                                              Zoho Sprints Resources


                                                                Qntrl Resources


                                                                  Zoho Creator Resources



                                                                    Zoho WorkDrive Resources



                                                                      Zoho Campaigns Resources


                                                                        Zoho CRM Resources

                                                                        • CRM Community Learning Series

                                                                          CRM Community Learning Series


                                                                        • Tips

                                                                          Tips

                                                                        • Functions

                                                                          Functions

                                                                        • Meetups

                                                                          Meetups

                                                                        • Kbase

                                                                          Kbase

                                                                        • Resources

                                                                          Resources

                                                                        • Digest

                                                                          Digest

                                                                        • CRM Marketplace

                                                                          CRM Marketplace

                                                                        • MVP Corner

                                                                          MVP Corner





                                                                            Design. Discuss. Deliver.

                                                                            Create visually engaging stories with Zoho Show.

                                                                            Get Started Now