Hub api Update row query



I want to update row multiple columns at a time through hubapi:
i am following this method :

I have created PHP CRUD file perfectly and all other things works like create-row,delete-cell,update-row-cell.
but this one thing throws error.


status: "error",
message: "You must pass in a row for this operation.",
correlationId: "",
requestId: "

Here is my code of PHP CURL:

$requestUrl = sprintf(

$array = array( "2" => "drdr");

$array1 = array("values"=>$array);

$dataJson = json_encode($array1);

$ch = curl_init($requestUrl);
$dataJson = json_encode($data);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'PUT');
curl_setopt($ch, CURLOPT_POSTFIELDS, $dataJson);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
'Content-Type: application/json',
$response = curl_exec($ch);

echo $response;

if (!$response) {



Hi @kishan,

This may sound like a basic question, but is it possible that there isn't a value for $rowId when $requestUrl is assigned? If $rowId were null, that would explain the error. To help me troubleshoot, could you try logging the value of $requestUrl right after you assign it?