UpdateUSMSTemplate
Call the UpdateUSMSTemplate API to modify an unapproved SMS template and resubmit it for review.
Request Parameters
Parameter name | Type | Description | Required |
---|---|---|---|
Action | string | Value is: UpdateUSMSTemplate. | Yes |
AccountId | int | AccountId ID, Get AccountId. | Yes |
TemplateId | string | ID of the SMS template to be modified. | Yes |
Template | string | New 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 |
TemplateName | string | New 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 |
Remark | string | Cause 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 |
Instruction | string | Explanation 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 name | Type | Description | Required |
---|---|---|---|
RetCode | int | When RetCode is not 0, the specific error description is displayed in Message. If RetCode is 0, Message will not be returned. | Yes |
Action | string | Operation name. | Yes |
Message | string | Error 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
}