Error When create webinar registrants code: -1

@Ian_SITNB I turned it off, and it worked!

@michael_p.zoom

Here’s the code:

function putRegistrantZoom($idWebinar, $email, $nomeCompleto, $pedido, $whats) {
    global $KEY_ZOOM;
    $curl = curl_init();
    curl_setopt_array($curl, array(
        CURLOPT_URL => "https://api.zoom.us/v2/webinars/{$idWebinar}/registrants",
        CURLOPT_RETURNTRANSFER => true,
        CURLOPT_ENCODING => "",
        CURLOPT_MAXREDIRS => 10,
        CURLOPT_TIMEOUT => 30,
        CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
        CURLOPT_CUSTOMREQUEST => "POST",
        CURLOPT_POSTFIELDS => "{\"email\":\"{$email}\",
                                \"first_name\":\"{$nomeCompleto}\",
                                \"last_name\":\"{$pedido}\"}",
        CURLOPT_HTTPHEADER => array(
            "authorization: Bearer ".$KEY_ZOOM,
            "content-type: application/json"
        ),
    ));
    $response = curl_exec($curl);
    $err = curl_error($curl);
    curl_close($curl);
    return json_decode($response, true);
}
function autorizaZoom($webinarId, $registrantId, $registrantEmail, $acao) {
    global $KEY_ZOOM;
    $curl = curl_init();
    curl_setopt_array($curl, array(
        CURLOPT_URL => "https://api.zoom.us/v2/webinars/{$webinarId}/registrants/status",
        CURLOPT_RETURNTRANSFER => true,
        CURLOPT_ENCODING => "",
        CURLOPT_MAXREDIRS => 10,
        CURLOPT_TIMEOUT => 30,
        CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
        CURLOPT_CUSTOMREQUEST => "PUT",
       CURLOPT_POSTFIELDS => "{\"action\":\"{$acao}\",\"registrants\":[{\"id\":\"{$registrantId}\",\"email\":\"{$registrantEmail}\"}]}",
        CURLOPT_HTTPHEADER => array(
            "authorization: Bearer ".$KEY_ZOOM,
            "content-type: application/json"
        ),
    ));
    $response = curl_exec($curl);
    $err = curl_error($curl);
    curl_close($curl);
    return json_decode($response, true);
}