sms.resend
The sms.resend command resends a failed SMS message. It marks the "failed" message as resent.
TR50 Request
{
"1": {
"command": "sms.resend",
"params": {
"id": "531c907b5d80f1330c238757"
}
}
}
Request Parameters
Name | Type | Required | Description |
---|---|---|---|
id | String | Yes | The id is the unique identifier for each and every SMS record. In the case of a Sharing Things and Connections, a duplicate SMS will be created for each organization the connection is shared to and each SMS will have a different id |
TR50 Response
If the command is resent successfully a success message is returned. Otherwise, an error and error message will be returned.
{
"1": {
"success": true,
"params": {
"uuid": "57d0230853266d6edb8f78e3",
"preferredSmsc": "tele2",
"dateSent": "2016-09-07T10:24:08.12-04:00"
}
}
}
Response Parameters
Name
|
Type
|
Description
|
---|---|---|
uuid | String | The uuid is the identifier for each SMS sent through the SMS engine. In the case of Sharing Things and Connections, there will be a duplicate SMS record for each organization the connection is shared to and each record will share the same uuid. |
preferredSmsc | String | The preferred SMSC used to (re)send the message. |
dateSent | String | The date the message was (re)sent. |