News & Announcements User Community Developer Community

Welcome to the RingCentral Community

Please note the community is currently under maintenance and is read-only.

Search
Make sure to review our Terms of Use and Community Guidelines.
  Please note the community is currently under maintenance and is read-only.
Home » Developers
SUB-533 Extension Presence Webhook Error
Tags: webhooks, subscription
Nov 9, 2023 at 11:21am   •   1 replies  •  0 likes
GEQ API

Hi,

I'm trying to create a webhook subscription to receive DND status change events of a bunch of extensions an app needs to monitor using the event filter

 "/restapi/v1.0/account/{accountId}/extension/{extensionId}/presence/dnd"


The app is authenticated as the super user account that is trying to create the subscription but I am getting the error:

{
"errorCode": "SUB-533",
"message": "Not allowed subscribe for DnD status changes of another extension"
...
}

I'm hoping this isn't a hard set rule and there's a way to accomplish this because it would be really useful for us.

Thank you!

1 Answer
answered on Nov 9, 2023 at 1:20pm  

I don't know the reason why a super admin user cannot subscribe for other extensions' /dnd event. But you can just subscribe for the "/restapi/v1.0/account/{accountId}/extension/{extensionId}/presence/" event and parse the payload to check the dndStatus of that user extension.


 0
on Nov 9, 2023 at 3:40pm   •  0 likes

I got it to work, I'm not sure how because it gave me an error but I noticed a notification come through and now when I list subscriptions I can see a few that failed and one that is active and sending notifications. Super admin does seem to work.

on Nov 9, 2023 at 3:28pm   •  0 likes

Yes, but we would receive the presence notifications for any presence event which we are trying to avoid. We have a very specific use case that only cares about DND status change to respond when a user turns off department calls and do some background work. Having to process every presence event would be a huge waste of resources on the server.

on Nov 9, 2023 at 3:30pm   •  0 likes

Fully understand. I already reported to the team to investigate and consider if the owner restriction could be lifted. But that may take some time if they would change it.



A new Community is coming to RingCentral!

Posts are currently read-only as we transition into our new platform.

We thank you for your patience
during this downtime.

Try Workflow Builder

Did you know you can easily automate tasks like responding to SMS, team messages, and more? Plus it's included with RingCentral Video and RingEX plans!

Try RingCentral Workflow Builder

PRODUCTS
RingEX
Message
Video
Phone
OPEN ECOSYSTEM
Developer Platform
APIs
Integrated Apps
App Gallery
Developer support
Games and rewards

RESOURCES
Resource center
Blog
Product Releases
Accessibility
QUICK LINKS
App Download
RingCentral App login
Admin Portal Login
Contact Sales
© 1999-2024 RingCentral, Inc. All rights reserved. Legal Privacy Notice Site Map Contact Us