# 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:** 1\
**Showing post:** 3

<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.

---

_[View the full topic](https://devforum.zoom.us/t/inconsistent-behavior-when-attempting-update-of-registrant-approval-status-for-cloud-recording/31356)._
