# Can't set enforce\_login: true via API

**URL:** <https://devforum.zoom.us/t/cant-set-enforce-login-true-via-api/6863>\
**Category:** API and Webhooks\
**Created:** [November 29, 2019, 9:19am UTC](https://devforum.zoom.us/t/cant-set-enforce-login-true-via-api/6863 "2019-11-29T09:19:56Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![saurabh](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/saurabh/32/1925_2.png) [@saurabh](https://devforum.zoom.us/u/saurabh)\
**Post date:** [November 29, 2019, 9:19am UTC](https://devforum.zoom.us/t/cant-set-enforce-login-true-via-api/6863/1 "2019-11-29T09:19:56Z")

</div>

**Description/Error**  
I cannot set enforce\_login to true while creating meetings via API.  
If have tried to update the same meeting from the update meeting API. It also doesn’t help

**Which Endpoint/s?**

- To create meeting  
POST

# /users/{userId}/meetings

- To update meeting  
PATCH

# /meetings/{meetingId}

both the APIs request have same body which has enforce\_login: true  
However, when I check the created meeting settings from the zoom dashboad, it can see that the enforce login field is not set

**Screenshots (If applicable)**

 ![59 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/8/870d700b5d78a1298560672abf661ebec3803297.png)

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [December 3, 2019, 12:56am UTC](https://devforum.zoom.us/t/cant-set-enforce-login-true-via-api/6863/2 "2019-12-03T00:56:42Z")

</div>

Hey @saurabh,

This looks like a bug, we will get back to you with an update. JIRA: ZOOM-124752

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [December 5, 2019, 5:37pm UTC](https://devforum.zoom.us/t/cant-set-enforce-login-true-via-api/6863/3 "2019-12-05T17:37:32Z")

</div>

Hey @saurabh,

We are working on fixing this bug to allow the API to set the enforce\_login to true. We are currently scheduled to release the fix at the end of the month.

In the meantime, please set the enforce login settings via your meeting, profile or account level settings on the Zoom Web Portal.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![saurabh](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/saurabh/32/1925_2.png) [@saurabh](https://devforum.zoom.us/u/saurabh)\
**Post date:** [December 5, 2019, 6:51pm UTC](https://devforum.zoom.us/t/cant-set-enforce-login-true-via-api/6863/4 "2019-12-05T18:51:01Z")

</div>

Hey @tommy,

Thanks for the update.

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [December 5, 2019, 6:56pm UTC](https://devforum.zoom.us/t/cant-set-enforce-login-true-via-api/6863/5 "2019-12-05T18:56:20Z")

</div>

You’re welcome!

Thanks for your patience,  
Tommy

---

<div class="post-metadata">

**Author:** ![gkapatia1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gkapatia1/32/2955_2.png) [@gkapatia1](https://devforum.zoom.us/u/gkapatia1)\
**Post date:** [January 20, 2020, 8:25am UTC](https://devforum.zoom.us/t/cant-set-enforce-login-true-via-api/6863/6 "2020-01-20T08:25:57Z")

</div>

@tommy any update on this? as we have lot of meetings and doing it manually is not possible ☹

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [January 21, 2020, 4:46pm UTC](https://devforum.zoom.us/t/cant-set-enforce-login-true-via-api/6863/7 "2020-01-21T16:46:26Z")

</div>

Hey @gkapatia1,

Looks like this fix was released end of Dec. Have you tried it since?

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![gkapatia1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gkapatia1/32/2955_2.png) [@gkapatia1](https://devforum.zoom.us/u/gkapatia1)\
**Post date:** [January 22, 2020, 7:35am UTC](https://devforum.zoom.us/t/cant-set-enforce-login-true-via-api/6863/8 "2020-01-22T07:35:48Z")

</div>

Hey @tommy,

I did and it is not working.

I am sedding these settings -

```auto
'settings': {
  'host_video': False,
  'participant_video': False,
  'enforce_login': True,
   'join_before_host': True,
   'audio': 'voip',
  'auto_recording': 'cloud',
  'mute_upon_entry': True
}

```

all other options are getting set but `enforce_login` is not.

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [January 22, 2020, 4:57pm UTC](https://devforum.zoom.us/t/cant-set-enforce-login-true-via-api/6863/9 "2020-01-22T16:57:38Z")

</div>

Hey @gkapatia1,

Please see the updated request body:

[https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetingcreate#request-body](https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetingcreate#request-body)

 ![Screen Shot 2020-01-22 at 9.57.27 AM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/6/693441b17f928f1a3f0e9a3395b7c008892c13ef.png)

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 7:05pm UTC](https://devforum.zoom.us/t/cant-set-enforce-login-true-via-api/6863/10 "2020-08-21T19:05:51Z")

</div>

Closed on August 21, 2020, 7:05pm UTC


