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 Desk Resources

    • Desk Community Learning Series


    • Digest


    • Functions


    • Meetups


    • Kbase


    • Resources


    • Glossary


    • Desk Marketplace


    • MVP Corner


    • Word of the Day


      Zoho CRM Plus Resources

        Zoho Books Resources


          Zoho Subscriptions Resources

            Zoho Projects Resources


              Zoho Sprints Resources


                Zoho Orchestly 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




                          Zoho Writer Writer

                          Get Started. Write Away!

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

                            Zoho CRM コンテンツ




                              ご検討中の方