Unable to update a deal for the first time using REST API

Unable to update a deal for the first time using REST API

We are able to create a deal successfully using the REST API. According to our logic, if a deal doesn't exist we use the create deal API to create a new one. Else update the deal if it is already present. We use a specific id as a property that will always have a unique value which is used to search for a deal.

The problem is that after creating a new deal say D1, it creates a new deal D2 if we try to update D1. This happens only for the first updation try. After that we are able to update D1 successfully.

      Zoho SalesIQ Resources



            Zoho TeamInbox Resources

              Zoho DataPrep Resources


                  Zoho CRM Plus Resources

                    Zoho Books Resources


                      Zoho Subscriptions Resources

                        Zoho Desk Resources

                          Zoho Projects Resources


                            Zoho Sprints Resources


                              Qntrl Resources


                                Zoho Creator Resources


                                  Zoho WorkDrive Resources




                                      Zoho Campaigns Resources

                                        Zoho CRM Resources

                                                    Design. Discuss. Deliver.

                                                    Create visually engaging stories with Zoho Show.

                                                    Get Started Now


                                                      Zoho Show Resources


                                                        Zoho Writer Writer

                                                        Get Started. Write Away!

                                                        Writer is a powerful online word processor, designed for collaborative work.

                                                                  有料プランをご利用の方