# Is it possible to assign a co-host with SDK or API?

**URL:** <https://devforum.zoom.us/t/is-it-possible-to-assign-a-co-host-with-sdk-or-api/4636>\
**Category:** Meeting SDK\
**Created:** [June 14, 2019, 9:03pm UTC](https://devforum.zoom.us/t/is-it-possible-to-assign-a-co-host-with-sdk-or-api/4636 "2019-06-14T21:03:26Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![cg1313](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/cg1313/32/1084_2.png) [@cg1313](https://devforum.zoom.us/u/cg1313)\
**Post date:** [June 14, 2019, 9:03pm UTC](https://devforum.zoom.us/t/is-it-possible-to-assign-a-co-host-with-sdk-or-api/4636/1 "2019-06-14T21:03:26Z")

</div>

I was wondering if the following work flow can be customized and if so can you please point me to the documentation? It seems like a basic function:

1. Get list of users in the meeting
2. If X user is in the meeting, assign as co-host

Thank you.

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [June 14, 2019, 10:09pm UTC](https://devforum.zoom.us/t/is-it-possible-to-assign-a-co-host-with-sdk-or-api/4636/2 "2019-06-14T22:09:23Z")

</div>

Hi cg1313,  
Thanks for the post. Which platform are you looking at?

Thanks!

---

<div class="post-metadata">

**Author:** ![cg1313](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/cg1313/32/1084_2.png) [@cg1313](https://devforum.zoom.us/u/cg1313)\
**Post date:** [June 15, 2019, 7:05pm UTC](https://devforum.zoom.us/t/is-it-possible-to-assign-a-co-host-with-sdk-or-api/4636/3 "2019-06-15T19:05:58Z")

</div>

Hi Carson. Thank you for your reply. Windows would be good but it can be written in any language as long as it can be executed via exe, php, python, etc. Preferably Windows.

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [June 17, 2019, 5:54pm UTC](https://devforum.zoom.us/t/is-it-possible-to-assign-a-co-host-with-sdk-or-api/4636/4 "2019-06-17T17:54:15Z")

</div>

Hi,  
Thanks for the reply. Our Zoom SDK supports the following 3 programming languages on Windows:

- C++:[https://github.com/zoom/zoom-sdk-windows](https://github.com/zoom/zoom-sdk-windows)
- C#:[https://github.com/zoom/zoom-c-sharp-wrapper](https://github.com/zoom/zoom-c-sharp-wrapper)
- JavaScript(Electron):[https://github.com/zoom/zoom-winsdk-electron](https://github.com/zoom/zoom-winsdk-electron)  
The C++ version is the full native version, it has all interfaces and full capabilities, and the C# and JavaScript(Electron) version are the wrappers that calls the interfaces in the C++ version, they have less interfaces compare with the C++ version.

If you are interested in assigning a participant as the co-host, take the C++ version as an example, you can use the following interfaces:

```auto
virtual SDKError AssignCoHost(unsigned int userid) = 0;

```

The `IMeetingParticipantController` class([https://zoom.github.io/zoom-sdk-windows/class\_i\_meeting\_participants\_controller.html](https://zoom.github.io/zoom-sdk-windows/class_i_meeting_participants_controller.html)) has all interfaces that you would need to CRUD a participant with his/her user role.

For other info regarding our Windows SDK, you can refer to our SDK doc: [https://marketplace.zoom.us/docs/sdk/native-sdks/windows](https://marketplace.zoom.us/docs/sdk/native-sdks/windows)

Hope this helps. Thanks!

---

<div class="post-metadata">

**Author:** ![oyosocial](https://avatars.discourse-cdn.com/v4/letter/o/67e7ee/32.png) [@oyosocial](https://devforum.zoom.us/u/oyosocial)\
**Post date:** [March 24, 2020, 9:00pm UTC](https://devforum.zoom.us/t/is-it-possible-to-assign-a-co-host-with-sdk-or-api/4636/5 "2020-03-24T21:00:21Z")

</div>

I have the same question, while I am exploring the API page here:

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

Once meeting created and if X user is in the meeting, is there an API I can call to make that user be co-host?

Thank you!

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [March 25, 2020, 3:29am UTC](https://devforum.zoom.us/t/is-it-possible-to-assign-a-co-host-with-sdk-or-api/4636/6 "2020-03-25T03:29:10Z")

</div>

Hi [oyosocial](https://devforum.zoom.us/u/oyosocial),

Thanks for the reply. It is possible to assign co-host using SDK interfaces, such as the virtual SDKError AssignCoHost(unsigned int userid) = 0; interface that I have mentioned above in Windows SDK. If you are looking for the solution to do this using Zoom Rest API, you might need to consult the experts at [https://devforum.zoom.us/c/zoom-api/8](https://devforum.zoom.us/c/zoom-api/8).

Hope this helps. Thanks!

---

<div class="post-metadata">

**Author:** ![oyosocial](https://avatars.discourse-cdn.com/v4/letter/o/67e7ee/32.png) [@oyosocial](https://devforum.zoom.us/u/oyosocial)\
**Post date:** [March 25, 2020, 1:16pm UTC](https://devforum.zoom.us/t/is-it-possible-to-assign-a-co-host-with-sdk-or-api/4636/7 "2020-03-25T13:16:08Z")

</div>

oh, I didn’t realize posted my question in the wrong forum. Sorry for that. Thank you for the info, Carson.

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [March 27, 2020, 3:47am UTC](https://devforum.zoom.us/t/is-it-possible-to-assign-a-co-host-with-sdk-or-api/4636/8 "2020-03-27T03:47:52Z")

</div>

My pleasure. Happy Zooming! 🙂

---

<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:24pm UTC](https://devforum.zoom.us/t/is-it-possible-to-assign-a-co-host-with-sdk-or-api/4636/9 "2020-08-21T19:24:18Z")

</div>

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


