Zoho Projects API - set planned work hours not working

Zoho Projects API - set planned work hours not working

Hi,

I'm developing a web app to help us create tasks quickly.

I'm able to create tasks and set most of the parameters, but when I try to set the 'owner_work' parameter for planned work, it never seems to work.

I've tried sending the POST requests via both Python and PHP, neither of which seems to work.

Here is a key section of my PHP code for reference:
  1. $request_params = array('authtoken' => $AUTHTOKEN, 'name' => $task_name, 'duration' => $task_duration, 'owner_work' => [['user_id' => '646282401', 'working_hours' => '2']]);
  2. curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($request_params));
Am I doing anything wrong here? Is my 'owner_work' array set up correctly.

Thanks,
Tommy

    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
                                          • Topic Participants

                                          • tommy



                                              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