How do I put a date into a custom field?

How do I put a date into a custom field?

I'm trying to build a code where I need the field I created, "Created Time", and populate it with the current date whenever the ticket is created. Every time I run my code, however, I receive an error:

{"errorCode":"UNPROCESSABLE_ENTITY","message":"An extra parameter 'cf_created_date' is found"}

From my understanding, if I want to place somethign in a custom field, I need the API for it, which is what the error is calling an extra parameter, so I don't see what I'm missing. What do I need to do to fix this code and populate 'cf_created_date' with today's date?

Here's what I have:

month = today.getMonth();
day = today.getDay();
year = today.getYear();
Created_Date = "cf_created_date";
update = Map();
slash = "/";
newDate = month + slash + day + slash + year;
update.put(Created_Date,newDate);
response = zoho.desk.update(670765413,"tickets",ticketId,update);
info response;

      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