# Incorrect type for makeHost in Zoom meeting web sdk, client view

**URL:** <https://devforum.zoom.us/t/incorrect-type-for-makehost-in-zoom-meeting-web-sdk-client-view/95956>\
**Category:** Web\
**Created:** [September 28, 2023, 11:31am UTC](https://devforum.zoom.us/t/incorrect-type-for-makehost-in-zoom-meeting-web-sdk-client-view/95956 "2023-09-28T11:31:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bharat.bhadresha](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/bharat.bhadresha/32/45714_2.png) [@bharat.bhadresha](https://devforum.zoom.us/u/bharat.bhadresha)\
**Post date:** [September 28, 2023, 11:31am UTC](https://devforum.zoom.us/t/incorrect-type-for-makehost-in-zoom-meeting-web-sdk-client-view/95956/1 "2023-09-28T11:31:13Z")

</div>

**Description**  
Type definition of `ZoomMtg.makeHost` is incorrect.  
userId parameter is shown as boolean where it should be Integer.

**Browser Console Error**  
NA

**Which Web Meeting SDK version?**  
2.16.0 - Client View

**Meeting SDK Code Snippets**

```auto
window.ZoomMtg.makeHost({userId:000, success: console.log, error: console.error})

```

**To Reproduce(If applicable)**  
NA

**Screenshots**

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/4/5/45043b01b80d3b97b0e31a568f46e5592c7e6c47.png)

**Troubleshooting Routes**  
NA

**Additional context**  
Causing issues with typescript implementation.

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [October 2, 2023, 4:58am UTC](https://devforum.zoom.us/t/incorrect-type-for-makehost-in-zoom-meeting-web-sdk-client-view/95956/2 "2023-10-02T04:58:03Z")

</div>

@bharat.bhadresha , thanks for highlighting this oversight, We’ve noted this and will be updating the docs.  
DEVELOPERS-4221

---

<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:** [November 1, 2023, 2:58pm UTC](https://devforum.zoom.us/t/incorrect-type-for-makehost-in-zoom-meeting-web-sdk-client-view/95956/3 "2023-11-01T14:58:27Z")

</div>

Closed on November 1, 2023, 2:58pm UTC

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