I want to add registrants unsing zoom Api in php current i am not able to this

public function bulkAddRegistrants($meetingId)
{
$accessToken = $this->getAccessToken();

$registrants = [
[
‘email’ => ‘exam1@gmail.com’,
‘first_name’ => ‘Registrant’,
‘last_name’ => ‘One’,
],
[
‘email’ => ‘exam2@gmail.com’,
‘first_name’ => ‘Registrant’,
‘last_name’ => ‘Two’,
],
// Add more registrants as needed
];

// Build the cURL request
$url = “https://api.zoom.us/v2/meetings/{$meetingId}/registrants”;

$data = json_encode([‘registrants’ => $registrants]);

$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, ‘POST’);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
'Authorization: Bearer ’ . $accessToken,
‘Content-Type: application/json’,
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
// Execute the cURL request
$response = curl_exec($ch);
$httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE);

// Check the response
if ($httpCode == 201) {
echo “Registrants added successfully.\n”;
} else {
echo “Error adding registrants: {$response}\n”;
}

// Close cURL session
curl_close($ch);

}

} i am not able to add registrants but i am able to add one by one using loop my requirement is to add in oneshot

@omerfarooqwani it doesnt seem like we have an option to add bulk registrants at the moment