Skip to main content
Question

How can we change sms message read status

  • November 10, 2019
  • 2 replies
  • 1804 views

Since I am new to the ringCentral apis.. I was exploring the sms api.

I was successful to send the sms. But what stuck me is the sms message status.

The below is the part of the response I got:

{
"type": "SMS",  "creationTime": "2019-11-10T18:50:02.000Z",  "readStatus": "Read",  "priority": "Normal",  "attachments": [    {      "id": ***********,
}

Here "readStatus": "Read"

While going through the api documentation I found the readStatus can be 2 types:

Read, Unread

My first question is what does this read status means?

How can I change it and mark it as Unread again? Is that possible?

2 replies

Yes you are correct there are 2 status: Read, Unread

You can use message store API to update the status of your message.

Checkout this API here:

https://developers.ringcentral.com/api-reference/Message-Store/updateMessage

Every SMS message have a messageId and you need to use that messageId to update the readStatus.

eg:

PUT https://platform.devtest.ringcentral.com/restapi/v1.0/account/~/extension/~/message-store/<your message id>

You can change the status now


PhongVu
Community Manager
Forum|alt.badge.img
  • Community Manager
  • 2389 replies
  • November 11, 2019

See the SMS API Tutorial for details and sample code.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings