# Trying to update presence\_status always returns a 401 "Invalid access token"

**URL:** <https://devforum.zoom.us/t/trying-to-update-presence-status-always-returns-a-401-invalid-access-token/82909>\
**Category:** API and Webhooks\
**Tags:** api\
**Created:** [February 10, 2023, 4:43pm UTC](https://devforum.zoom.us/t/trying-to-update-presence-status-always-returns-a-401-invalid-access-token/82909 "2023-02-10T16:43:36Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![terrym](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/terrym/32/45363_2.png) [@terrym](https://devforum.zoom.us/u/terrym)\
**Post date:** [February 10, 2023, 4:43pm UTC](https://devforum.zoom.us/t/trying-to-update-presence-status-always-returns-a-401-invalid-access-token/82909/1 "2023-02-10T16:43:36Z")

</div>

**API Endpoint(s) and/or Zoom API Event(s)**  
[https://marketplace.zoom.us/docs/api-reference/zoom-api/methods/#operation/updatePresenceStatus](https://marketplace.zoom.us/docs/api-reference/zoom-api/methods/#operation/updatePresenceStatus)

PUT api zoom us/v2/users/{user\_id}/presence\_status , with json `{"status":"Away"}`  
Bearer token sent in the header

**Description**  
I’ve got an account level, oAuth app, with the scopes “user:write:admin, user:read:admin”.

- Auth through - zoom us/oauth/authorize
- Get a token from - zoom us/oauth/token
- In the response from the token uri, I see the corrects scopes.
- I take the access token, and try to update my presence. I’ve tried both my user id and “/users/me/presence\_status” … and it returns a 401

**Error?**  
401 Unauthorized

```auto
{
    "code": 124,
    "message": "Invalid access token."
}

```

---

<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:** [February 10, 2023, 6:32pm UTC](https://devforum.zoom.us/t/trying-to-update-presence-status-always-returns-a-401-invalid-access-token/82909/2 "2023-02-10T18:32:18Z")

</div>

Hi @terrym , I am not able to reproduce this. Was it previously working and behavior changed? If so, when?

---

<div class="post-metadata">

**Author:** ![terrym](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/terrym/32/45363_2.png) [@terrym](https://devforum.zoom.us/u/terrym)\
**Post date:** [February 10, 2023, 8:08pm UTC](https://devforum.zoom.us/t/trying-to-update-presence-status-always-returns-a-401-invalid-access-token/82909/4 "2023-02-10T20:08:34Z")

</div>

No, this is a brand new app and I’ve not been able to get this to work.

---

<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:** [February 13, 2023, 8:46pm UTC](https://devforum.zoom.us/t/trying-to-update-presence-status-always-returns-a-401-invalid-access-token/82909/5 "2023-02-13T20:46:31Z")

</div>

Hi @terrym , can you please private message me the full request so I can see what you’re sending? Additionally, have you been able to successfully use this token with any other endpoints like [List Meetings](https://marketplace.zoom.us/docs/api-reference/zoom-api/methods/#operation/meetings)?

---

<div class="post-metadata">

**Author:** ![terrym](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/terrym/32/45363_2.png) [@terrym](https://devforum.zoom.us/u/terrym)\
**Post date:** [February 13, 2023, 9:08pm UTC](https://devforum.zoom.us/t/trying-to-update-presence-status-always-returns-a-401-invalid-access-token/82909/6 "2023-02-13T21:08:16Z")

</div>

Thanks Gianni! I found out there’s an issue with cluster “us04”, which is what I’m on. I can wait until that’s sorted.

---

<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:** [February 13, 2023, 9:42pm UTC](https://devforum.zoom.us/t/trying-to-update-presence-status-always-returns-a-401-invalid-access-token/82909/7 "2023-02-13T21:42:18Z")

</div>

Okay great, I’m glad you were able to sort it out!

---

<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:** [February 17, 2024, 1:18pm UTC](https://devforum.zoom.us/t/trying-to-update-presence-status-always-returns-a-401-invalid-access-token/82909/8 "2024-02-17T13:18:33Z")

</div>

Closed on February 17, 2024, 1:18pm UTC

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