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
Does Update Message ReadStatus endpoint support batch request ?
Tags: sdk
Nov 27, 2017 at 10:22pm   •   6 replies  •  0 likes
hardik-joshi

Hi Team,


Does "Update Message ReadStatus" endpoint support batch request ? as i want to update multiple messages "ReadStatus" in one single request.


if yes then can you please provide me sample code for c# sdk for the same ?


i can see in API Explorer below line :

Updates message(s) by ID(s). Batch request is supported. Currently, only the message read status updating is supported.
but dont know how to do it.


Hardik Joshi

6 Answers
answered on Dec 3, 2017 at 4:43pm  
Detailed documentation is here: https://developer.ringcentral.com/api-docs/latest/index.html#!#BatchRequests.html

 is there any limits on number of messages
I am not aware of such limitation

second thing currently i am getting status "207" after all done..so what if one of provided messages not updated as "Read" i mean which status i will get in that case.

Any code other than 207 means not fully successful. For example, if one ID is not found, 404 will be returned. If there is a server side error, 500 will be returned. You can have a try yourself and let me know if you have further questions.

 0
answered on Nov 30, 2017 at 10:47pm  
Hi Tyler, it works for me thank you very much for your help.

i am having one question on it, is there any limits on number of messages i can send to update in one go ? or i can updates as many as i have.

second thing currently i am getting status "207" after all done..so what if one of provided messages not updated as "Read" i mean which status i will get in that case.

Thanks,
Hardik Joshi


 0
answered on Nov 30, 2017 at 10:10pm  
Alright...thanks Tyler let me check it

 0
answered on Nov 30, 2017 at 2:12am  
I have written an example: https://github.com/ringcentral/ringcentral-csharp-client/blob/1.0/RingCentral.Test/BatchRequestTest....

Please read and let me know if you have questions.

 0
answered on Nov 27, 2017 at 10:35pm  
Ok np Tyler. thank you 

 0
answered on Nov 27, 2017 at 10:30pm  
C# SDK doesn't support batch request API. It is a known limitation.

I will see if I can produce some sample code(using low level HTTP requests to do batch requests) for you.

 0



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