Using this template helps us debug your issues more effectively
Description
When creating a meeting some meetings return with approval 2. The funny part is using the same user id, some meetings return with approval type 0 and some with 2, however all requests sent were for approval type 0.
Error
code":404,“message”:"Registration has not been enabled for this meeting: 96480257134.
Which App Type (OAuth / Chatbot / JWT / Webhook)?
We are using JWT.
Which Endpoint/s?
Knowing the API endpoint/s can help us to identify your issue faster. Please link the ones you need help/have a question with.
Additional context
The confusing part here is that the same code works for some meetings, but doesnt work for some meetings and the error comes randomly in any meeting.
This is the peace of code which I use for my create meeting request.
$body = ;
$body['topic'] = "{$batch_details['batch']}" . (strlen($batch_details['branch_code']) > 0 ? "({$batch_details['branch_code']})" : "") . date("d-m-Y");
$body['agenda'] = "{$batch_details['batch']}". (strlen($batch_details['branch_code']) > 0 ? "({$batch_details['branch_code']})" : "").",\nDate: " . date("d-m-Y");
$body['duration'] = (strtotime(date('Y-m-d') . " " . $batch_details['end_time']) - strtotime(date('Y-m-d') . " " . $batch_details['start_time'])) / 60;
$body['schedule_for'] = $batch_details['zoom_id'];
$body['timezone'] = "Asia/Kolkata";
$body['password'] = "";
$body['start_time'] = date("c", strtotime(date('Y-m-d') . " " . $batch_details['start_time']));
$body['settings'] = [
"host_video"=>true,
"participant_video"=>true,
"join_before_host"=>false,
"mute_upon_entry"=>false,
"approval_type"=> 0,
"meeting_authentication"=>false
];
$response = $this->callAPI("POST", "https://api.zoom.us/v2/users/{$this->zoom_user['zoom_id']}/meetings", json_encode($body));
This is the response which I get for my create meeting request for some meetings.
Meeting created 2021-10-07 00:10:26, 2064
{“uuid”:“SAvnnyFJTH+q43N5UDUJew==”,“id”:96480257134,“host_id”:“CBAjyaxjSfaqg9zAt4DPiQ”,“host_email”:"*hidden",“assistant_id”:“AnZYyK4qSBaSXos_SbGohQ”,“topic”:“Online B27 Thur 5 - 6 Pm(B27)07-10-2021”,“type”:2,“status”:“waiting”,“start_time”:“2021-10-07T11:30:00Z”,“duration”:60,“timezone”:“Asia/Kolkata”,“agenda”:“Online B27 Thur 5 - 6 Pm(B27),\nDate: 07-10-2021”,“created_at”:“2021-10-06T18:49:25Z”,“start_url”:“Launch Meeting - Zoom 3126266799”,“type”:“toll”,“country”:“US”},{“country_name”:“US”,“city”:“Houston”,“number”:"+1 3462487799",“type”:“toll”,“country”:“US”},{“country_name”:“US”,“city”:“San Jose”,“number”:"+1 6699006833",“type”:“toll”,“country”:“US”},{“country_name”:“US”,“city”:“New York”,“number”:"+1 9292056099",“type”:“toll”,“country”:“US”},{“country_name”:“US”,“city”:“Tacoma”,“number”:"+1 2532158782",“type”:“toll”,“country”:“US”},{“country_name”:“US”,“city”:“Washington DC”,“number”:"+1 3017158592",“type”:“toll”,“country”:“US”}],“registrants_email_notification”:true,“meeting_authentication”:false,“encryption_type”:“enhanced_encryption”,“approved_or_denied_countries_or_regions”:{“enable”:false},“breakout_room”:{“enable”:false},“alternative_hosts_email_notification”:true,“device_testing”:false},“pre_schedule”:false}
Also I get another response for same code and request
Meeting created 2021-10-07 07:10:01, 2064
{“uuid”:“gKtVGZdqQSqAJfnz1egO6g==”,“id”:99867705910,“host_id”:“CBAjyaxjSfaqg9zAt4DPiQ”,“host_email”:"*hidden",“assistant_id”:“AnZYyK4qSBaSXos_SbGohQ”,“topic”:“Online B27 Thur 5 - 6 Pm(B27)07-10-2021”,“type”:2,“status”:“waiting”,“start_time”:“2021-10-07T11:30:00Z”,“duration”:60,“timezone”:“Asia/Kolkata”,“agenda”:“Online B27 Thur 5 - 6 Pm(B27),\nDate: 07-10-2021”,“created_at”:“2021-10-07T02:14:01Z”,“start_url”:“Launch Meeting - Zoom 3126266799”,“type”:“toll”,“country”:“US”},{“country_name”:“US”,“city”:“Houston”,“number”:"+1 3462487799",“type”:“toll”,“country”:“US”},{“country_name”:“US”,“city”:“San Jose”,“number”:"+1 6699006833",“type”:“toll”,“country”:“US”},{“country_name”:“US”,“city”:“New York”,“number”:"+1 9292056099",“type”:“toll”,“country”:“US”},{“country_name”:“US”,“city”:“Tacoma”,“number”:"+1 2532158782",“type”:“toll”,“country”:“US”},{“country_name”:“US”,“city”:“Washington DC”,“number”:"+1 3017158592",“type”:“toll”,“country”:“US”}],“contact_name”:“Batul Tickle Right”,“contact_email”:"*hidden",“registrants_email_notification”:true,“meeting_authentication”:false,“encryption_type”:“enhanced_encryption”,“approved_or_denied_countries_or_regions”:{“enable”:false},“breakout_room”:{“enable”:false},“alternative_hosts_email_notification”:true,“device_testing”:false},“pre_schedule”:false}