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

      • Topic Participants

      • tommy