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




                            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

                                        • Sticky Posts

                                        • Building extensions #7: Create custom widgets for a simplified end-user experience

                                          Discover the benefits of using widgets! We explored the significance of widgets, prerequisites, and the availability of JS SDK methods as part of our previous post. In this post, let's go over a detailed example of using widgets along with certain Zoho
                                        • Building extensions #6: Custom user interfaces with Widgets

                                          Welcome to our post on Widgets for Zoho Projects! In our last post, we explored the significance of the connections feature, showed how to use it, and provided an example use case. In this article, we'll look at the importance of widgets, another feature
                                        • Building extensions #5: Integrating applications with Zoho Projects through Connections

                                          In our last post, we discussed the essential features that a Zoho Projects extension can provide. Starting with this post andin every subsequent post going forward, we'll go through each of those features in depth, one by one, with an example use case.
                                        • Building extensions #4: Fundamental features of a Zoho Projects extension

                                          Hello everyone! Thank you for visiting our Building Extensions series. As part of this series, we've already covered how to use the Sigma cloud editor and the ZET CLI to create, test, and publish extensions for Zoho Projects. You can refer to our earlier
                                        • Announcing the Zoho Projects API

                                          Today we're excited to announce the API for Zoho Projects where any developer can extend the project management and collaboration capabilities through our APIs and can build their own customized applications for their business needs. We've tried to make the API follow the REST (Representational State Transfer) principles and generate a XML/ JSON object which allows you to access / read / write Zoho Projects data from third-party systems like Google/Yahoo gadgets, web sites, billing & invoicing systems,


                                        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