Skip to main content

UpdateUSMSTemplate

Call the UpdateUSMSTemplate API to modify an unapproved SMS template and resubmit it for review.

Request Parameters

Parameter nameTypeDescriptionRequired
ActionstringValue is: UpdateUSMSTemplate.Yes
AccountIdintProject ID. Get AccountId.Yes
TemplateIdstringID of the SMS template to be modified.Yes
TemplatestringNew template content. Either the template name or the template content must be provided, otherwise an error will be reported. The length should be no more than 600 characters.Yes
TemplateNamestringNew template name. The length must be less than or equal to 32 characters, and each English letter, symbol, number, and Chinese character counts as one character.No
RemarkstringCause description for applying for an SMS template. The length must not exceed 128 characters, and each English letter, symbol, number, Chinese character, etc. counts as one character.No
InstructionstringExplanation of the template variable properties.No

Modify the SMS template. It is used to modify existing templates. After a successful submission, if the template content is modified, the template status will be reset to the initial state; if only the template name is modified, it will not be reset.

Response Elements

Parameter nameTypeDescriptionRequired
RetCodeintWhen RetCode is not 0, the specific error description is displayed in Message. If RetCode is 0, Message will not be returned.Yes
ActionstringOperation name.Yes
MessagestringError description when an error occurs.Yes

Request Example

curl -X POST https://api.uspeedo.com/api -H 'Content-Type: application/json' -d '{
"Action": "UpdateUSMSTemplate",
"AccountId": 1,
"TemplateId": "UTA1908XXXX8B3F",
"Template": "alertXXXXXXXXXXXXXXXXXXXXXXXX",
"TemplateName": "uSpeedo-alert",
"Remark": "XXXXXXXXXXXXXXX",
"Instruction": "cmUVPDNr"
}'

Response Example

{
"Action": "UpdateUSMSTemplateResponse",
"Message": "",
"RetCode": 0
}