Adding a new project with Template, the end date does not reflect.

Adding a new project with Template, the end date does not reflect.

Hi, 
Using the API {POST  /portal/[PORTALID]/projects/} it all works perfectly. Once howevery a template ID is introduced, suddenly the end_date is not reflective in ZOHO projects. There are no errors returned and it works perfectly besides the end date not be visible.

This problem is only for the end_date parameter and not the start date. 

Please see the attached code.

def new_project(**kwargs):
''''''
headers = {
'Authorization': 'Zoho-oauthtoken '+access_token
}
portal_name = "XXXXXX"
url = f'https://projectsapi.zoho.com/restapi/portal/{portal_name}/projects/'
params = {
template_id = "TEST",
UDF_USER1 = "xxxx" ,
UDF_USER2 = "XXX",
UDF_USER3 = "XXX",
start_date = "04-01-2021",
UDF_CHAR1 = "XXX",
UDF_CHAR2 = "XXX",
end_date = "05-01-2021"
)
}
response = requests.post(url, params=params, headers=headers)
print(response.status_code)
if response is not None:
if response.status_code < 400:
return response.json()
else:
raise Exception(response)
else:
print("we got no response")

The above code was modified for this example. But its shows that the format is the same for both dates one month apart in MM-DD-YY .  

    Access your files securely from anywhere

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


                                                                          Zoho CRM Resources

                                                                          • CRM Community Learning Series

                                                                            CRM Community Learning Series


                                                                          • Kaizen

                                                                            Kaizen

                                                                          • 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