# Inconsistent behavior when attempting update of registrant approval status for Cloud Recording

**URL:** <https://devforum.zoom.us/t/inconsistent-behavior-when-attempting-update-of-registrant-approval-status-for-cloud-recording/31356>\
**Category:** API and Webhooks\
**Created:** [September 26, 2020, 4:30am UTC](https://devforum.zoom.us/t/inconsistent-behavior-when-attempting-update-of-registrant-approval-status-for-cloud-recording/31356 "2020-09-26T04:30:35Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![rich2](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rich2/32/15962_2.png) [@rich2](https://devforum.zoom.us/u/rich2)\
**Post date:** [September 26, 2020, 4:30am UTC](https://devforum.zoom.us/t/inconsistent-behavior-when-attempting-update-of-registrant-approval-status-for-cloud-recording/31356/1 "2020-09-26T04:30:35Z")

</div>

**Description**  
I have an app that automatically registers people for webinars and webinar cloud recordings. On the webinar side, the app works great. I’m able to add Webinar registrants (marketplace DOT zoom DOT us/docs/api-reference/zoom-api/webinars/webinarregistrantcreate), then programmatically update their status (marketplace DOT zoom DOT us/docs/api-reference/zoom-api/webinars/webinarregistrantstatus) based on whether or not they’re in a predetermined list.

This should work nearly identically for the Cloud Recording side, and in fact, [adding a registrant for a Cloud Recording programatically](https://marketplace.zoom.us/docs/api-reference/zoom-api/cloud-recording/meetingrecordingregistrantcreate) works great. The problem is that updating their status from “Pending Approval” to “Approved” works extremely inconsistently.

When my program is run line by line in a debugger, or when run in the Test Request browser environment with an identical body and headers to what is in the program, the call works exactly as intended. However, when run as part of the program without the debugger enabled, even if the user is already in the “Pending Approval” section of the Cloud Recording, no changes to their status is made, despite a 204 status code being returned.

**Error**  
The issue here is that there is no error, despite unwanted behavior. The API endpoint returns 204 even if nothing is changed serverside. This can be reproduced easily by sending a request where the list of registrant IDs is entirely blank – 204 is returned, despite no registrant statuses being updated at all.

Another error happens when using the Webinar API to add users to the webinar after it is finished. Approved users receive an email with no subject and a link to register for access to the cloud recording, rather than a simple link to the cloud recording.

Fixing either of these would allow the app’s main functionality, which is to programmatically approve specific users to view webinars and webinar recordings, to work once again.

**Which App Type (OAuth / Chatbot / JWT / Webhook)?**  
JWT

**Which Endpoint/s?**  
Most of the errors come from:

> **[Update Recording Registrant's Status - Cloud Recording - Zoom API - API...](https://marketplace.zoom.us/docs/api-reference/zoom-api/cloud-recording/meetingrecordingregistrantstatus)**
>
> A registrant can either be approved or denied from viewing the on-demand recording. 
> Use this API to update a registrant's status.
> 
> Scopes: recording:wr...

**How To Reproduce (If applicable)**  
Steps to reproduce the behavior:

- Use the API to register and approve a user to a webinar after the webinar is already over.
- Use the API to register and approve a user to a recording of a webinar.

**Additional context**  
Previously, adding and approving someone to a webinar that had already ended would result in them getting a working link to the cloud recording, without requiring an additional registration. Now, they are sent an email with no subject and a link that forces them to register _again_ despite already being approved. If the initial email’s body actually links to the cloud recording, rather than the page where someone can sign up to view a cloud recording _for a webinar they are already approved for_, the entire problem with the Update Recording Registrant’s Status API call is entirely irrelevant.

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [September 28, 2020, 6:46pm UTC](https://devforum.zoom.us/t/inconsistent-behavior-when-attempting-update-of-registrant-approval-status-for-cloud-recording/31356/2 "2020-09-28T18:46:18Z")

</div>

Hey @rich2,

I noticed you mentioned:

> When my program is run line by line in a debugger, or when run in the Test Request browser environment with an identical body and headers to what is in the program, the call works exactly as intended

Can you share the code snippet where your’e running this locally? I’m wondering if this could be an edge case in your program.

If you could please also share the full request that is failing (and the meetingID and registrant ID) I’m happy to take a closer look.

Thanks!  
Will

---

<div class="post-metadata">

**Author:** ![rich2](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rich2/32/15962_2.png) [@rich2](https://devforum.zoom.us/u/rich2)\
**Post date:** [September 29, 2020, 3:17pm UTC](https://devforum.zoom.us/t/inconsistent-behavior-when-attempting-update-of-registrant-approval-status-for-cloud-recording/31356/3 "2020-09-29T15:17:36Z")

</div>

Hey Will, here’s the section of code that has to do with submitting recordings and webinar registrations. finOrNot is a simple boolean representing whether or not a user is submitting the form 3 hours after the scheduled start time, and approval is a boolean representing whether or not a user’s email is present on a list. standardPOSTH() is a function that just returns the usual headers (content-type json and the bearer token) into a variable.

```
    #WEBINAR ADD
    url = zoomBaseURL + meetingType + "/" + str(meetID) + "/registrants"
    payload = "{\"email\": \"" + email + "\",\"first_name\": \"" + chimpInfo["fname"] + "\", \"last_name\": \"" + chimpInfo["lname"] + "\", \"org\": \"" + chimpInfo["company"] + "\"}"
    headers = standardPOSTH()
    response = requests.request("POST", url, headers=headers, data = payload) #makes the request
    meeting = response.json() #translates the json object into a dictionary 
    if approval:
        #WEBINAR APPROVE
        url = zoomBaseURL + meetingType + "/" + str(meetID) + "/registrants/status"
        payload = '''{\"action\": \"approve\",\"registrants\": [{\"id\": \"'''+ meeting["registrant_id"] + '''\",\"email\": \"''' + email + '''\"}]}'''
        headers = standardPOSTH()
        response = requests.request("PUT", url, headers=headers, data = payload)
    if finOrNot == True: #ADD THEM AND APPROVE THEM TO WEBINAR FIRST
        #ADD AS RECORDING REGISTRANT
        url = zoomBaseURL + "meetings/" + str(meetID) + "/recordings/registrants"
        payload = "{\"email\": \"" + email + "\",\"first_name\": \"" + chimpInfo["fname"] + "\", \"last_name\": \"" + chimpInfo["lname"] + "\", \"org\": \"" + chimpInfo["company"] + "\"}"
        headers = standardPOSTH()
        response = requests.request("POST", url, headers=headers, data = payload) #makes the request
        meeting = response.json() #translates the json object into a dictionary 
        if approval:
        #RECORDING APPROVE
            url = zoomBaseURL + "meetings/" + str(meetID) + "/recordings/registrants/status"
            payload = '''{\"action\": \"approve\",\"registrants\": [{\"id\": \"''' + meeting["registrant_id"] + '''\"}]}'''
            headers = standardPOSTH()
            response = requests.request("PUT", url, headers=headers, data = payload)

```

The problem isn’t that the request fails – just the opposite. I get no error message at all, only a 204 response with no body, every time I run that last request.

An example ID for the recording would be 84696057299, and a user with the ID of XniCo0p9QVmiBJqxK6QxJw tried to register, but it didn’t go through, despite returning a 204.

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [September 30, 2020, 9:11pm UTC](https://devforum.zoom.us/t/inconsistent-behavior-when-attempting-update-of-registrant-approval-status-for-cloud-recording/31356/4 "2020-09-30T21:11:17Z")

</div>

Hey @rich2,

Thanks for laying this out in such detail—Our team is looking into this (ZOOM-151205). It’s likely that in these instances, the registrant is still in “pending” because of async processes. As a workaround while we investigate this, you may find that adding a delay of ~3 seconds after each registrant update may resolve the issue.

That said, I will follow up with you here as I have updates.

Thanks,  
Will

---

<div class="post-metadata">

**Author:** ![rich2](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rich2/32/15962_2.png) [@rich2](https://devforum.zoom.us/u/rich2)\
**Post date:** [October 1, 2020, 2:02pm UTC](https://devforum.zoom.us/t/inconsistent-behavior-when-attempting-update-of-registrant-approval-status-for-cloud-recording/31356/5 "2020-10-01T14:02:25Z")

</div>

Hi Will,  
After converting my entire program into an asynchronous one, it works nearly completely. However, I still get two emails when testing. One email gives me a link to register, even though the button says watch, and has no subject. The other email gives me a functional link, and has a subject.

Is this related to approving people for a webinar after it closes?

Screenshots are below:

 ![chrome_2020-10-01_09-59-17](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/a/5/a5ef08f68d3e6dddc63d60dabd157346e15b51af.png)

---

<div class="post-metadata">

**Author:** ![rich2](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rich2/32/15962_2.png) [@rich2](https://devforum.zoom.us/u/rich2)\
**Post date:** [October 2, 2020, 2:25am UTC](https://devforum.zoom.us/t/inconsistent-behavior-when-attempting-update-of-registrant-approval-status-for-cloud-recording/31356/6 "2020-10-02T02:25:24Z")

</div>

Additionally, I got this error message, which is handled correctly, but has a grammatical error in it, when I submit a POST request to a meeting that doesn’t require registration.

In the screenshot below, the message underneath “something went wrong” is directly output from the error message.

 ![Screen Shot 2020-10-01 at 10.15.28 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/1/d/1d253daae1e3360c5e72de23a2e551b8d2f9054e.png)

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [October 2, 2020, 6:53pm UTC](https://devforum.zoom.us/t/inconsistent-behavior-when-attempting-update-of-registrant-approval-status-for-cloud-recording/31356/7 "2020-10-02T18:53:32Z")

</div>

Hey @rich2,

Thanks for these additional details and the screenshots! For the second email, sent out after webinar registration approval for the recording, this would be expected. However, for the first email, I’m not sure why there’s not subject here/link is not functional, and this seems like a bug (likely related to the fact the webinar has passed). Can you confirm the webinar ID for which that first email was generated? I’d like to log this with our team.

As for the typo—thank you for pointing this out! We will make sure to correct this.

Thanks,  
Will

---

<div class="post-metadata">

**Author:** ![rich2](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rich2/32/15962_2.png) [@rich2](https://devforum.zoom.us/u/rich2)\
**Post date:** [October 5, 2020, 12:49pm UTC](https://devforum.zoom.us/t/inconsistent-behavior-when-attempting-update-of-registrant-approval-status-for-cloud-recording/31356/8 "2020-10-05T12:49:54Z")

</div>

The webinar ID was 897 0910 9943.

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [October 5, 2020, 8:47pm UTC](https://devforum.zoom.us/t/inconsistent-behavior-when-attempting-update-of-registrant-approval-status-for-cloud-recording/31356/9 "2020-10-05T20:47:14Z")

</div>

Thanks for providing that @rich2. Our team will take a closer look at this. (ZOOM-203623)

Best,  
Will

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [November 5, 2020, 6:47am UTC](https://devforum.zoom.us/t/inconsistent-behavior-when-attempting-update-of-registrant-approval-status-for-cloud-recording/31356/10 "2020-11-05T06:47:17Z")

</div>

Closed on November 5, 2020, 6:47am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
