<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.casebender.com/v1/alerts/_bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'ids' => [
[
]
],
'updates' => [
],
'updates.status' => '<string>',
'updates.severity' => '<string>',
'updates.assigned_to' => '<string>',
'updates.tags' => [
[
]
],
'updates.custom_fields' => [
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}