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


      • Topic Participants

      • tommy

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




                              ご検討中の方