Skip to main content

Update MMS Template

Invoke the UpdateMMSTemplate API to modify an MMS template that has not been approved and resubmit it for review.

Request Parameters

Parameter nameTypeDescriptionRequired
ActionstringValue: UpdateMMSTemplate.Yes
AccountIdintProject ID, Get AccountId.Yes
TemplateIdstringID of the MMS template to be modified.Yes
TemplateNamestringMMS template name, not exceeding 20 characters. Each English letter, symbol, number, Chinese character, etc., counts as 1 character.Yes
TextstringMMS template text content, not exceeding 5000 bytes. The variable format in the template is filled in as {N}, where N is an integer greater than 1. When there are multiple parameters, N starts from 1, such as {1}, {2}, etc.Yes
MediaTypestringMMS media file type, currently supporting: "image/png", "image/jpeg".Yes
MediastringMMS media file data, base64 encoded, with a file size not exceeding 300KB.Yes
SubjectstringMMS title, not exceeding 20 characters.No

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
MessagestringWhen RetCode is not 0, the specific error description is displayed in Message.Yes

Request Example

curl --request POST 'https://api.uspeedo.com/api' \
--header 'Content-Type: application/json' \
-d '{
"Action": "UpdateMMSTemplate",
"AccountId": 1,
"TemplateId": "mms template id",
"TemplateName": "mms template name",
"Subject": "mms subject",
"Text": "mms text",
"MediaType": "image/png",
"Media": "bW1zIG1lZGlhIGRhdGE="
}'

Response Example

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