Zoho projects API unable to create subtask with start date

Zoho projects API unable to create subtask with start date

Good morning, 

I noticed a bug with the Zoho projects API.  When creating a task, I was able to create a task and set the start date and end date.  However, when creating the subtask I was unable to set the start and end date. 

Python pseudocode follows:

# Create the root task
post_params = {'authtoken': authtoken, 
               'name': task_name, 
               'start_date':  '11-01-2017' ,
                                'end_date':  '12-01-2017' ,  
               'person_responsible': assigned_person,
               'priority': priority,
               'tasklist_id': tasklist,
               'description': html_desc
               }

# Get Task ID and create task
task_id = str(requests.post(base_url_task,post_params).json()['tasks'][0]['id'])

base_url_subtask = base_url + 'tasks/' + task_id + '/subtasks/'
post_params = {'authtoken': authtoken, 
               'name': subtask_name, 
               'start_date': '11-01-2017', 
               'end_date': '12-01-2017', 
               'person_responsible': subperson_responsible,
               'priority': subpriority,
               'description': subhtml_desc
               }
response_new = requests.post(base_url_subtask,post_params)

If I comment out the lines with the  start_date and  end_date then this works; however, this works with the line(s) commented out.  

PS...The above should be considered pseudocode, as it is not exactly what I am using in my code.

Alex 

    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 コンテンツ




                              ご検討中の方