Send batch request to update extension presence

  • 1
  • Question
  • Updated 1 year ago
I want to change the status for all extensions at a given time. I have tried the following address to send a batch request /restapi/v1.0/account/~/extension/230794004,230908004/presence to update 2 extensions. However, this is throwing an error Resource for parameter [extensionId] is not found.  What is the correct endpoint for this?
Photo of Rakesh .

Rakesh .

  • 80 Points 75 badge 2x thumb

Posted 1 year ago

  • 1
Photo of Igor Bebin

Igor Bebin, Official Rep

  • 750 Points 500 badge 2x thumb
Hi Rakesh,

Batch update is not suppported for Presence API. 

May I ask what goal you're trying to achieve? E.g. update DnD status for multiple Users doesn' look like a common Presence use Case.

Thanks,
Igor
Photo of Rakesh .

Rakesh .

  • 80 Points 75 badge 2x thumb
Thank you for your reply. I have read the API docs and it says that it's supported - Unless this is wrong??: https://developer.ringcentral.com/api-docs/latest/index.html?section=RefExtensionList.html#!#RefUser... Update User Status
Updates user-defined extension(s) presence status, status message and DnD status by extension ID(s). Supports only regular User extensions. Batch request is supported.

I am looking to add this as we have issues in the morning where users have left their ringcentral status as available the evening before when leaving the office. When clients ring in the morning, ringcentral still thinks they are active and attempts to ring those extensions. The only way to stop this behavior is ensure they set it as "not accept call queue" and change dnd status. I was looking to set all extensions as offline in a batch request at some point in the late evening so we don't have to rely on the user.
Photo of Karina Gusmanova

Karina Gusmanova

  • 190 Points 100 badge 2x thumb
Hi Rakesh,
Sorry for misinformation, it's the error in docs, we'll fix it, thank you for finding out.