# Question about the API endpoint "Create a meeting"

**URL:** <https://devforum.zoom.us/t/question-about-the-api-endpoint-create-a-meeting/63464>\
**Category:** API and Webhooks\
**Created:** [January 31, 2022, 9:04am UTC](https://devforum.zoom.us/t/question-about-the-api-endpoint-create-a-meeting/63464 "2022-01-31T09:04:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![k-hosoki](https://avatars.discourse-cdn.com/v4/letter/k/f0a364/32.png) [@k-hosoki](https://devforum.zoom.us/u/k-hosoki)\
**Post date:** [January 31, 2022, 9:04am UTC](https://devforum.zoom.us/t/question-about-the-api-endpoint-create-a-meeting/63464/1 "2022-01-31T09:04:04Z")

</div>

**Description**

We want to use the API to create a meeting.  
[https://marketplace.zoom.us/docs/api-reference/zoom-api/methods/#operation/meetingCreate](https://marketplace.zoom.us/docs/api-reference/zoom-api/methods/#operation/meetingCreate)

In the `default_password` section of the API documentation, we found the following:

> If this value is `true` and the user has the PMI setting enabled with a password, then the user’s meetings will use the PMI password. It will **not** use a default password.

However, when I tried it with my Zoom account, I saw a different behavior.  
When I POSTed a request with a pre-set PMI password and the `default_password` parameter set to `true`, a random password was generated. This is inconsistent with the above statement.

**Error**

No error observed.

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

OAuth

**Which Endpoint/s?**

[https://api.zoom.us/v2/users/{userId}/meetings](https://api.zoom.us/v2/users/%7BuserId%7D/meetings)

**How To Reproduce (If applicable)**

Send a POST request to the endpoint above.

Request body:

```auto
{"topic": null,
 "start_time": "2022-01-31T09:30:00Z",
 "duration": 30,
 "timezone": "Asia/Tokyo",
 "default_password": "true"}

```

Response body:

```auto
{
	"uuid": " *******",
	"id": " ***********",
	"host_id": " ****",
	"host_email": "test@example.com",
	"topic": "Zoom Meeting",
	"type": 2,
	"status": "waiting",
	"start_time": "2022-01-31T09:30:00Z",
	"duration": 30,
	"timezone": "Asia/Tokyo",
	"created_at": "2022-01-31T08:52:54Z",
	"start_url": "https://zoom.us/s/ ***********?zak=***********",
	"join_url": "https://zoom.us/j/ ***********",
	"password": " ******",
	"h323_password": ******",
	"pstn_password": " ******",
	"encrypted_password": " ************",
	"settings": {
		"host_video": false,
		"participant_video": false,
		"cn_meeting": false,
		"in_meeting": false,
		"join_before_host": false,
		"jbh_time": 0,
		"mute_upon_entry": false,
		"watermark": false,
		"use_pmi": false,
		"approval_type": 2,
		"audio": "voip",
		"auto_recording": "none",
		"enforce_login": false,
		"enforce_login_domains": "",
		"alternative_hosts": "",
		"close_registration": false,
		"show_share_button": false,
		"allow_multiple_devices": false,
		"registrants_confirmation_email": true,
		"waiting_room": true,
		"request_permission_to_unmute_participants": false,
		"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,
		"focus_mode": false,
		"private_meeting": false,
		"email_notification": true
	},
	"pre_schedule": false
}

```

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [January 31, 2022, 4:17pm UTC](https://devforum.zoom.us/t/question-about-the-api-endpoint-create-a-meeting/63464/2 "2022-01-31T16:17:14Z")

</div>

Hi @k-hosoki ,

Did you have this setting when you did “create a meeting”?

 ![Screen Shot 2022-01-31 at 11.11.35 AM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/0/2/02a700a09197e5c33cf8b53fac60d8f7516b5f8d.png)  
If not, it will be creating a meeting with a new non-PMI meeting id even if the account has PMI enabled on the web portal. Did the default password populate for this meetings?

Thank you,  
Gianni

---

<div class="post-metadata">

**Author:** ![k-hosoki](https://avatars.discourse-cdn.com/v4/letter/k/f0a364/32.png) [@k-hosoki](https://devforum.zoom.us/u/k-hosoki)\
**Post date:** [February 1, 2022, 1:07am UTC](https://devforum.zoom.us/t/question-about-the-api-endpoint-create-a-meeting/63464/3 "2022-02-01T01:07:29Z")

</div>

Hi @gianni.zoom ,

Thank you for your answer.

My question was not a good one and it seems that my intention was not conveyed correctly.

We are fine as long as it is guaranteed that a random password will be generated (without PMI password being set or no password) if use\_pmi is not specified.  
Am I correct in understanding that if both use\_pmi and password are not specified, and default\_password is set to true, then a non-PMI meeting will be created with a random password generated according to the user’s password requirements?

Thanks.  
k-hosoki

---

<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:** [March 3, 2022, 11:07am UTC](https://devforum.zoom.us/t/question-about-the-api-endpoint-create-a-meeting/63464/4 "2022-03-03T11:07:33Z")

</div>

Closed on March 3, 2022, 11:07am UTC

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