# Update Agent Presence Failing

**URL:** <https://devforum.zoom.us/t/update-agent-presence-failing/87433>\
**Category:** API and Webhooks\
**Created:** [April 26, 2023, 3:12pm UTC](https://devforum.zoom.us/t/update-agent-presence-failing/87433 "2023-04-26T15:12:56Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![gschally](https://avatars.discourse-cdn.com/v4/letter/g/6a8cbe/32.png) [@gschally](https://devforum.zoom.us/u/gschally)\
**Post date:** [April 26, 2023, 3:12pm UTC](https://devforum.zoom.us/t/update-agent-presence-failing/87433/1 "2023-04-26T15:12:56Z")

</div>

Recently our updates to the agent presence starting failing, returning 400 Bad Request.

We are using this endpoint:

[https://api.zoom.us/v2/users/{userId}/presence\_status](https://api.zoom.us/v2/users/%7BuserId%7D/presence_status)

We were posting two pieces of data, duration and status. It was working, now the duration comes back “invalid field”.

Apologies, I’m no longer able to locate the documentation for this endpoint. Can someone please help?

Thanks,  
George

---

<div class="post-metadata">

**Author:** ![gschally](https://avatars.discourse-cdn.com/v4/letter/g/6a8cbe/32.png) [@gschally](https://devforum.zoom.us/u/gschally)\
**Post date:** [April 26, 2023, 4:05pm UTC](https://devforum.zoom.us/t/update-agent-presence-failing/87433/2 "2023-04-26T16:05:41Z")

</div>

To add to this issue, I’m only getting the eror when I set the status to “Busy”, or “Out\_Of\_Office”, and these are exact spellings of status events I receive through the webhook when I update from the Zoom app.

---

<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:** [April 26, 2023, 9:28pm UTC](https://devforum.zoom.us/t/update-agent-presence-failing/87433/3 "2023-04-26T21:28:36Z")

</div>

Hi @gschally ,

Here is the documentation: [https://developers.zoom.us/docs/api/rest/reference/zoom-api/methods/#operation/updatePresenceStatus](https://developers.zoom.us/docs/api/rest/reference/zoom-api/methods/#operation/updatePresenceStatus)

Could it be that requests to update the endpoint were happening more than once per minute or is it failing regardless? A user’s status cannot be updated more than once per minute. For example, you can only submit a maximum of one update request per minute for a single user.

Talk soon.

---

<div class="post-metadata">

**Author:** ![gschally](https://avatars.discourse-cdn.com/v4/letter/g/6a8cbe/32.png) [@gschally](https://devforum.zoom.us/u/gschally)\
**Post date:** [April 27, 2023, 3:21pm UTC](https://devforum.zoom.us/t/update-agent-presence-failing/87433/5 "2023-04-27T15:21:48Z")

</div>

Thanks! I see the documentation indicates these possible values for presence status:

- `Away`
- `Do_Not_Disturb`
- `Available`
- `In_Calendar_Event`
- `Presenting`
- `In_A_Zoom_Meeting`
- `On_A_Call`

But in the Zoom client my customers are using, I see these status’s:

Avaialbe  
Busy  
Do Not Disturb  
Away  
Out of Office

What would account for “Away” and “Out of Office” not being allowed for update via API if they are valid options in the Zoom phone client?

Thanks,  
George

---

<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:** [April 28, 2023, 7:30pm UTC](https://devforum.zoom.us/t/update-agent-presence-failing/87433/6 "2023-04-28T19:30:38Z")

</div>

Hi @gschally , Away is allowed depending on client version, but Out of Office is yet to be released:

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/0/e/0ea8686d89696af07e0bf3426032c587ecccffcb.png)

Does that clear things up?

---

<div class="post-metadata">

**Author:** ![gschally](https://avatars.discourse-cdn.com/v4/letter/g/6a8cbe/32.png) [@gschally](https://devforum.zoom.us/u/gschally)\
**Post date:** [April 28, 2023, 9:57pm UTC](https://devforum.zoom.us/t/update-agent-presence-failing/87433/7 "2023-04-28T21:57:55Z")

</div>

I’m just curious why the phone status’s aren’t matching with the API. For example, the phone allows “Busy”, but the API doesn’t. But thanks for your help.

---

<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:** [May 1, 2023, 2:52pm UTC](https://devforum.zoom.us/t/update-agent-presence-failing/87433/8 "2023-05-01T14:52:07Z")

</div>

Hi @gschally ,

I totally understand! At this time, it doesn’t match up one-to-one. There are certain things that are not always available to implement programatically.

---

<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:** [May 4, 2024, 6:29am UTC](https://devforum.zoom.us/t/update-agent-presence-failing/87433/9 "2024-05-04T06:29:07Z")

</div>

Closed on May 4, 2024, 6:29am UTC

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