public function update($taskId, array $data)
    {
        $data = self::mergeData($data, [
            'finished' => false,
            'smContactTaskReq' => [
                'id' => $taskId,
            ],
        ]);

        return $this->client->doPost('contact/updateTask', $data);
    }
public function update($taskId, array $data)
    {
        $data = self::mergeData($data, [
            'finished' => false,
            'smContactTaskReq' => [
                'id' => $taskId,
            ],
        ]);

        return $this->client->doPost('contact/updateTask', $data);
    }
public function update ( $ taskId , array $ data ) { $ data = self :: mergeData ( $ data , [ 'finished' => false , 'smContactTaskReq' => [ 'id' => $ taskId , ] , ] ) ; return $ this -> client -> doPost ( 'contact/updateTask' , $ data ) ; }
Update task.

@param  string $taskId Task internal ID
@param  array  $data   Task data
@return array
Update task .