I can’t add multiple columns during add new pulse, kindly help me
<?php
$column_valuess = array(
'0' => array(
'id' => 'name',
'type' => 'name',
'title' => 'Name',
"width"=> 264,
'value' => 'value'
),
'1' => array(
"type"=> "text",
"title"=> "First Name",
"id"=> "text1",
"value"=> "text1"
),
'2'=>array(
"type"=> "text",
"title"=> "Last Name",
"id"=> "first_name",
'value' => 'value'
),
'3' =>array(
"title"=> "Email",
"type" => "text",
"id" => "text6",
"width"=> 126,
'value' => 'value'
),
'4' =>array(
"title"=> "Address",
"type"=> "text",
"id"=> "text7"
),
'5' =>array(
"title"=> "City",
"type"=> "text",
"id"=> "text78"
),
'6' =>array(
"title"=> "State",
"type"=> "text",
"id"=> "text53"
),
'7' =>array(
"title"=> "Country",
"type"=> "country",
"id"=> "country"
),
'8' =>array(
"type"=> "text",
"title"=> "Zip",
"id"=> "text8"
),
'9' =>array(
"title"=> "Phone",
"type"=> "phone",
"id"=> "phone"
),
'10' =>array(
"title"=> "Mobile Phone",
"type"=> "phone",
"id"=> "phone8"
),
'11' =>array(
"title"=> "Best time to call",
"type"=> "text",
"id"=> "text15"
),
'12' =>array(
"title"=> "Capital To Invest",
"type"=> "numeric",
"id"=> "numbers9"
),
);
// $column_val = json_encode($column_valuess);
$column_data= array(
"board_id"=> 296635975, //The board’s unique identifier.
"user_id"=> 9882495, //pulse owner id or set owner, The pulse’s owner
"pulse" => array(
'name' => 'Biswajeet Parida', //The pulse’s name,
),
'add_to_bottom' =>true, //Define if the new pulse will be added to the bottom of the group. Default is false
'column_values' => $column_valuess
);
$json_data = json_encode($column_data);
print_r($json_data);
// exit();
// https://api.monday.com:443/v1/boards/296635975/pulses.json?api_key=cad8b1106647d553675c6b224240e5a9
$ch = curl_init();
// curl_setopt($ch, CURLOPT_URL, 'https://api.monday.com/v2/boards');
curl_setopt($ch, CURLOPT_URL, 'https://api.monday.com:443/v1/boards/296635975/pulses.json?api_key=cad8b1106647d553675c6b224240e5a9');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $json_data);
curl_setopt($ch, CURLOPT_POST, 1);
$headers = array();
$headers$] = 'Content-Type: application/json';
$headers$] = 'Authorization: eyJhbGciOiJIUzI1NiJ9.eyJ0aWQiOjE5NjUyNjAzLCJ1aWQiOjk4DOI0OTUsImlhZCI6IjIwMTktMDgtMDggMTA6Mzc6MTMgVVRDIiwicGVyIjoibWU6d3JpdGUifQ.RUFWYIPxTIQdvvycSyhKFeGRfhWvXIjfG-stNGcpHmo';
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$result = curl_exec($ch);
if (curl_errno($ch)) {
echo 'Error:' . curl_error($ch);
}
$result_data = json_decode($result);
curl_close($ch);
echo "
";
print_r($result_data);