# Use API to create a scheduled meeting hosted by a non-owner user

**URL:** <https://devforum.zoom.us/t/use-api-to-create-a-scheduled-meeting-hosted-by-a-non-owner-user/76801>\
**Category:** Meetings\
**Created:** [October 1, 2022, 10:07pm UTC](https://devforum.zoom.us/t/use-api-to-create-a-scheduled-meeting-hosted-by-a-non-owner-user/76801 "2022-10-01T22:07:05Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![zoom.admin](https://avatars.discourse-cdn.com/v4/letter/z/a9a28c/32.png) [@zoom.admin](https://devforum.zoom.us/u/zoom.admin)\
**Post date:** [October 1, 2022, 10:07pm UTC](https://devforum.zoom.us/t/use-api-to-create-a-scheduled-meeting-hosted-by-a-non-owner-user/76801/1 "2022-10-01T22:07:05Z")

</div>

**API Endpoint** -  
“[https://api.zoom.us/v2/users/SanitizedUser@example.com/meetings](https://api.zoom.us/v2/users/SanitizedUser@example.com/meetings)”

**Description**  
I want to create a scheduled meeting for the user “[SanitizedUser@example.com](mailto:SanitizedUser@example.com)” as host.  
With the above endpoint, and post data =  
$postData = ‘{  
“duration”: 60,  
“start\_time”: “2022-10-03T08:00:00”,  
“timezone”: “America/El\_Salvador”,  
“type”: 2  
}’;  
it creates the meeting but with the owner user as host.  
When I have post data =  
$postData = ‘{  
“duration”: 60,  
“schedule\_for”: “[SanitizedUser@example.com](mailto:SanitizedUser@example.com)”,  
“start\_time”: “2022-10-03T08:00:00”,  
“timezone”: “America/El\_Salvador”,  
“type”: 2  
}’;  
I get - {“code”:3000,“message”:“You cannot schedule a meeting for [SanitizedUser@example.com](mailto:SanitizedUser@example.com).”}  
When I change the endpoint to - “[https://api.zoom.us/v2/users/SanitizedOwner@example.com/meetings](https://api.zoom.us/v2/users/SanitizedOwner@example.com/meetings)”  
I get the same 2 results as above.  
How do I create a meeting with someone other than the owner as host?

---

<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:** [October 3, 2022, 3:36am UTC](https://devforum.zoom.us/t/use-api-to-create-a-scheduled-meeting-hosted-by-a-non-owner-user/76801/2 "2022-10-03T03:36:34Z")

</div>

Hi @zoom.admin ,

Make sure you have scheduling privileges for the user set up correctly:

> **[Scheduling privilege](https://support.zoom.us/hc/en-us/articles/201362803-Scheduling-privilege)**
>
> Scheduling privilege is designed for a user or an executive admin to:
> 
> Assign or delegate a user or multiple users in your account to schedule meetings on your behalf. 
> Schedule meetings on behalf ...

> **[Managing scheduling privilege and alternative hosts](https://support.zoom.us/hc/en-us/articles/4403249620493-Scheduling-privilege-and-alternative-hosts)**
>
> Account owners and admins can enable an account-level setting to allow users to add alternative hosts and assign scheduling privileges to other users who are in the same organization. These feature...

Thank you!

---

<div class="post-metadata">

**Author:** ![zoom.admin](https://avatars.discourse-cdn.com/v4/letter/z/a9a28c/32.png) [@zoom.admin](https://devforum.zoom.us/u/zoom.admin)\
**Post date:** [October 4, 2022, 12:03pm UTC](https://devforum.zoom.us/t/use-api-to-create-a-scheduled-meeting-hosted-by-a-non-owner-user/76801/3 "2022-10-04T12:03:20Z")

</div>

Thanks for your timely reply. My problem was that, unbeknownst to me, the company had 2 different zoom accounts. I was trying to schedule a meeting for a user that did not exist in the account the API was created for. She existed in the other account.

---

<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:** [October 4, 2022, 7:40pm UTC](https://devforum.zoom.us/t/use-api-to-create-a-scheduled-meeting-hosted-by-a-non-owner-user/76801/4 "2022-10-04T19:40:27Z")

</div>

@zoom.admin ah okay, so is it now resolved?

---

<div class="post-metadata">

**Author:** ![zoom.admin](https://avatars.discourse-cdn.com/v4/letter/z/a9a28c/32.png) [@zoom.admin](https://devforum.zoom.us/u/zoom.admin)\
**Post date:** [October 5, 2022, 11:40am UTC](https://devforum.zoom.us/t/use-api-to-create-a-scheduled-meeting-hosted-by-a-non-owner-user/76801/5 "2022-10-05T11:40:28Z")

</div>

Yes, it is resolved. Thank you.
