question

hardik-joshi6230 avatar image
hardik-joshi6230 asked Tyler Liu answered

Does Update Message ReadStatus endpoint support batch request ?

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

sdk
1 |1500 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Tyler Liu avatar image
Tyler Liu answered Tyler Liu commented
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.
2 comments
1 |1500 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Hi Tyler,

did you got chance to look at this point, i am really in need of c# sdk to support batch request for updating message read status. please look into it on high priority as we want to deploy application on production ASAP.

Thanks,
Hardik Joshi
0 Likes 0 ·
Nope, I took yesterday off.  One workaround for your consideration: since the C# SDK is async, you can issue multiple api calls instead of one batch api call.
I will take a look myself however I cannot promise when it will be ready.
0 Likes 0 ·
hardik-joshi6230 avatar image
hardik-joshi6230 answered
Ok np Tyler. thank you 
1 |1500 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Tyler Liu avatar image
Tyler Liu answered
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.
1 |1500 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

hardik-joshi6230 avatar image
hardik-joshi6230 answered
Alright...thanks Tyler let me check it
1 |1500 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

hardik-joshi6230 avatar image
hardik-joshi6230 answered
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

1 |1500 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Tyler Liu avatar image
Tyler Liu answered
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.
1 |1500 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Developer sandbox tools

Using the RingCentral Phone for Desktop, you can dial or receive test calls, send and receive test SMS or Fax messages in your sandbox environment.

Download RingCentral Phone for Desktop:

Tip: switch to the "sandbox mode" before logging in the app:

  • On MacOS: press "fn + command + f2" keys
  • On Windows: press "Ctrl + F2" keys