question

Dilip Kunder avatar image
Dilip Kunder asked Phong Vu answered

How can we change sms message read status

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?

sms
1 |1000

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

Anirban Sen Chowdhary avatar image
Anirban Sen Chowdhary answered

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

1 |1000

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

Phong Vu avatar image
Phong Vu answered

See the SMS API Tutorial for details and sample code.

1 |1000

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

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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