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 name | Type | Description | Required |
---|---|---|---|
Action | string | Value: UpdateMMSTemplate. | Yes |
AccountId | int | Project ID, Get AccountId. | Yes |
TemplateId | string | ID of the MMS template to be modified. | Yes |
TemplateName | string | MMS template name, not exceeding 20 characters. Each English letter, symbol, number, Chinese character, etc., counts as 1 character. | Yes |
Text | string | MMS 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 |
MediaType | string | MMS media file type, currently supporting: "image/png", "image/jpeg". | Yes |
Media | string | MMS media file data, base64 encoded, with a file size not exceeding 300KB. | Yes |
Subject | string | MMS title, not exceeding 20 characters. | No |
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 | When 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
}