When creating a meeting some meetings return with approval 2

Using this template helps us debug your issues more effectively :slight_smile:

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}

Hi @Pranay ,

This is documented behavior that our service engineers are currently investigating. I will find the ticket number for you and share here once I do.

Thanks!
Gianni

Hi @gianni.zoom ,
Thankyou for the response, looking forward to a solution ASAP, as this is a very time critical issue for us.

Hi @Pranay,

A fix is currently under way for this bug, and our team is hoping to have an update on release timing soon. In the meantime, please see this post for a workaround:

Thanks

Thank you very much for the quick answer. I will implement the workaround for now. Looking forward to a permanent solution, thank you.

Thanks, @Pranay — we hope to have a permanent fix in place shortly.

Hi @will.zoom,
I implemented the patch, but still it’s failing to update meeting’s settings as discussed earlier
for eg.
I have created a piece of code to update as Patch for the meeting, same piece of code was executed for both the responses

Meeting updated 2021-10-13 16:19:02, 3032

{“uuid”:“—something—==”,“id”:96979014845,“host_id”:“~something~”,“host_email”:“~something~”,“assistant_id”:“~something~”,“topic”:“Online Wed 4 Pm , Fri 4 Pm13-10-2021”,“type”:2,“status”:“waiting”,“start_time”:“2021-10-13T11:30:00Z”,“duration”:60,“timezone”:“Asia/Kolkata”,“agenda”:“”,“created_at”:“2021-10-12T19:15:23Z”,“start_url”:“Launch Meeting - Zoom DC”,“number”:“+1 3017158592”,“type”:“toll”,“country”:“US”},{“country_name”:“US”,“city”:“Chicago”,“number”:“+1 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”}],“contact_name”:“code Right”,“contact_email”:“~something~@gmail.com”,“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}

Response for 2021-10-13 16:19:03, 3032, ~something~@yahoo.co.in
{“registrant_id”:“~something~”,“id”:96979014845,“topic”:“Online Wed 4 Pm , Fri 4 Pm13-10-2021”,“start_time”:“2021-10-13T11:30:00Z”,“join_url”:“Launch Meeting - Zoom”}
Response for 2021-10-13 16:19:04, 3032, ~something~@gmail.com
{“registrant_id”:“~something~”,“id”:96979014845,“topic”:“Online Wed 4 Pm , Fri 4 Pm13-10-2021”,“start_time”:“2021-10-13T11:30:00Z”,“join_url”:“Launch Meeting - Zoom”}`

`Meeting updated 2021-10-13 16:20:31, 3171

{“uuid”:“~something~+~something~==”,“id”:95754701964,“host_id”:“~something~”,“host_email”:“~something~@gmail.com”,“assistant_id”:“~something~”,“topic”:“Online B10 Wed 6:15 Pm(B10)13-10-2021”,“type”:2,“status”:“waiting”,“start_time”:“2021-10-13T12:45:00Z”,“duration”:60,“timezone”:“Asia/Kolkata”,“agenda”:“Online B10 Wed 6:15 Pm(B10),\nDate: 13-10-2021”,“created_at”:“2021-10-12T18:59:22Z”,“start_url”:“Launch Meeting - Zoom 2532158782”,“type”:“toll”,“country”:“US”},{“country_name”:“US”,“city”:“Washington DC”,“number”:“+1 3017158592”,“type”:“toll”,“country”:“US”},{“country_name”:“US”,“city”:“Chicago”,“number”:“+1 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”}],“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}

Response for 2021-10-13 16:20:32, 3171, ~something~.~something~@gmail.com
{“code”:404,“message”:“Registration has not been enabled for this meeting: 95754701964.”}
Response for 2021-10-13 16:20:33, 3171, ~something~.~something~@gmail.com
{“code”:404,“message”:“Registration has not been enabled for this meeting: 95754701964.”}
Response for 2021-10-13 16:20:34, 3171, ~something~~something~@gmail.com
{“code”:404,“message”:“Registration has not been enabled for this meeting: 95754701964.”}

Hi @Pranay,

Can you share the exact request URL being used for these requests and the JSON body you’re passing with me directly at developersupport@zoom.us? This will help me to take a closer look.

Thanks,
Will

Hi @will.zoom ,

This is the exact URL which we are using for the requests-

when creating the meeting-

https://api.zoom.us/v2/users//meetings

And below is the PHP code for body and this is passed as body while calling API after converting in JSON Format -

       $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

        ];

And Response we got approval_type : 2 instead send approval_type : ‘0’ in JSON body

Meeting created 2021-10-20 00:17:27, 3344
{“uuid":“wR4IVTtKTIik7blrI5QUHQ==”,“id”:92916766409,“host_id”:“dNp4tdU-QfuMLJoyj-UDvQ”,“host_email”:"@gmail.com”,“assistant_id”:“AnZYyK4qSBaSXos_SbGohQ”,“topic”:“Online B37 Wed 7 Pm(B37)20-10-2021”,“type”:2,“status”:“waiting”,“start_time”:“2021-10-20T13:30:00Z”,“duration”:60,“timezone”:“Asia/Kolkata”,“agenda”:“Online B37 Wed 7 Pm(B37),\nDate: 20-10-2021”,“created_at”:“2021-10-19T18:47:27Z”,“start_url”:“Launch Meeting - Zoom DC”,“number”:"+1 3017158592",“type”:“toll”,“country”:“US”},{“country_name”:“US”,“city”:“Chicago”,“number”:" “,“type”:“toll”,“country”:“US”},{“country_name”:“US”,“city”:“Houston”,“number”:”",“type”:“toll”,“country”:“US”},{“country_name”:“US”,“city”:“San Jose”,“number”:"",“type”:“toll”,“country”:“US”},{“country_name”:“US”,“city”:“New York”,“number”:"",“type”:“toll”,“country”:“US”},{“country_name”:“US”,“city”:“Tacoma”,“number”:"",“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}

when assigning participants, URL is-

https://api.zoom.us/v2/meetings//registrants

And the JSON body is -
{
‘email’ : ‘email id’,
‘first_name’ : ‘xyz’,
‘last_name’ : ‘abc’
}

and after that we got the response as mentioned below-

Response for 2021-10-20 00:17:28, 3344, hidden@gmail.com
{“code”:404,“message”:“Registration has not been enabled for this meeting: 92916766409.”}
Response for 2021-10-20 00:17:29, 3344, hidden@gmail.com
{“code”:404,“message”:“Registration has not been enabled for this meeting: 92916766409.”}
Response for 2021-10-20 00:17:30, 3344, hidden@gmail.com
{“code”:404,“message”:“Registration has not been enabled for this meeting: 92916766409.”}
Response for 2021-10-20 00:17:31, 3344, hidden@gmail.com
{“code”:404,“message”:“Registration has not been enabled for this meeting: 92916766409.”}
Response for 2021-10-20 00:17:32, 3344, hidden@gmail.com
{“code”:404,“message”:“Registration has not been enabled for this meeting: 92916766409.”}

This is happening with only some meetings not for all.

Thanks

Hi @Pranay,

I’ve masked some of the sensitive details in your previous post.

Please ensure that when you update the meeting, you’re using the following URL:
https://api.zoom.us/v2/meetings/meetingId
(do not include users or user id in this url)

and the following http method: PATCH

And only passing the following two fields:

{
  "settings":{
    "approval_type": 0,
    "registration_type": 2
  }
}

This should return a 204 on success, but will not return a response body. Based on your example, it seems like you might have been calling the meeting create endpoint.

Note that our permanent fix is in place for our next release in a couple of weeks.

Thanks,
Will

Hey @will.zoom ,
The above response which we discussed earlier was implementation of this piece of code

$body = ;
$body[‘settings’] = [

“approval_type”=> 0,
“registration_type”=> 2
];

$update_meeting_id = $conn->query(“SELECT meeting_id FROM table WHERE batch_id = ‘{$batch_id}’ AND date = '”.date(‘Y-m-d’).“’ AND park = ‘0’”)->fetch_assoc();
//echo “https://api.zoom.us/v2/meetings/{$update_meeting_id[‘meeting_id’]}”;
$response = $this->callAPI(“PATCH”, “https://api.zoom.us/v2/meetings/{$update_meeting_id[‘meeting_id’]}”, json_encode($body));
//After response assign participants.

Yes I’m using the https://api.zoom.us/v2/meetings/meetingID url for this.
I have sent a mail regarding this.
My actual issue is the patch fails to update some meetings and also it updates some meetings successfully. And theirs also a limit for requesting to assign participant in a meeting of 3.
Where as I observe it usually fails to update meetings twice or thrice.

This is response for the above code

Hi @Pranay,

I can see we’re now in touch over email, so I will continue the conversation with you there.

Best,
Will