# \`https://api.zoom.us/v2/users/${userId}\`

**URL:** <https://devforum.zoom.us/t/https-api-zoom-us-v2-users-userid/34315>\
**Category:** API and Webhooks\
**Created:** [October 26, 2020, 6:34pm UTC](https://devforum.zoom.us/t/https-api-zoom-us-v2-users-userid/34315 "2020-10-26T18:34:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rabbit2345](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rabbit2345/32/2370_2.png) [@rabbit2345](https://devforum.zoom.us/u/rabbit2345)\
**Post date:** [October 26, 2020, 6:34pm UTC](https://devforum.zoom.us/t/https-api-zoom-us-v2-users-userid/34315/1 "2020-10-26T18:34:18Z")

</div>

Hello I am trying to update firstname and lastname of a user using endpoint:

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

via jwt token

and i am getting an error:

API call failed, reason 405 - "\<!doctype html\>\n\<html xmlns:fb=“[http://ogp.me/ns/fb#](http://ogp.me/ns/fb#)” lang=“en-US” \>\n\<head prefix="og: [http://ogp.me/ns#](http://ogp.me/ns#) fb: [http://ogp.me/ns/fb#](http://ogp.me/ns/fb#) zoomvideocall: [http://ogp.me/ns/fb/](http://ogp.me/ns/fb/)…\>

can anyone help?

---

<div class="post-metadata">

**Author:** ![rabbit2345](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rabbit2345/32/2370_2.png) [@rabbit2345](https://devforum.zoom.us/u/rabbit2345)\
**Post date:** [October 26, 2020, 6:43pm UTC](https://devforum.zoom.us/t/https-api-zoom-us-v2-users-userid/34315/2 "2020-10-26T18:43:48Z")

</div>

and just to give more details:

this is how i call the API:

const uri = `https://api.zoom.us/v2/users/${userId}`;  
var options = {  
uri: uri,  
qs: {  
status: ‘active’  
},  
method: ‘POST’,  
auth: {  
‘bearer’: token  
},  
body: {  
“first\_name”:firstname,  
“last\_name”:lastname  
},  
headers: {  
‘User-Agent’: ‘Zoom-api-Jwt-Request’,  
‘content-type’: ‘application/json’  
},  
json: true //Parse the JSON string in the response  
};

---

<div class="post-metadata">

**Author:** ![rabbit2345](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rabbit2345/32/2370_2.png) [@rabbit2345](https://devforum.zoom.us/u/rabbit2345)\
**Post date:** [October 27, 2020, 12:47pm UTC](https://devforum.zoom.us/t/https-api-zoom-us-v2-users-userid/34315/3 "2020-10-27T12:47:01Z")

</div>

actually never mind, i forgot to change method from POST to GET. doh.

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [October 28, 2020, 4:05pm UTC](https://devforum.zoom.us/t/https-api-zoom-us-v2-users-userid/34315/4 "2020-10-28T16:05:35Z")

</div>

Hey @rabbit2345,

Aha! I’m glad you figured it out 🙂

Best,  
Will

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [October 28, 2020, 4:05pm UTC](https://devforum.zoom.us/t/https-api-zoom-us-v2-users-userid/34315/5 "2020-10-28T16:05:38Z")

</div>


