msgsms__UpdateTemplate
Revise an SMS template's name, content, and variables to correct a rejected template and resubmit it for review.
Instructions
[MSGSMS] 该接口用于用户修改模板信息,目前仅支持审核不通过的短信模板重新修改
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"app_id": "<app_id>",
"id": "<id>",
"project_id": "<project_id>",
"region": "<region>",
"template_content": "<template_content>",
"template_name": "<template_name>",
"template_type": "<template_type>"
},
"name": "msgsms__UpdateTemplate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | 模板ID | |
| app_id | Yes | 应用主键ID | |
| region | Yes | 地域 | |
| sign_id | No | 签名主键ID,只有地域为国内时,该字段有效 | |
| brackets | No | 中括号类型。支持枚举值: | |
| project_id | Yes | 项目ID。获取方法请参见 [获取帐号、用户、项目的名称和ID](https://support.huaweicloud.com/api-msgsms/sms_05_0020.html)。 | |
| flow_status | No | 流程状态 | |
| send_country | No | 发送国家id列表,只有地域为国际时,该字段有效 | |
| template_desc | No | 模板描述 | |
| template_name | Yes | 模板名称 | |
| template_type | Yes | 模板类型。只有地域为国内时,该字段有效。支持枚举值: | |
| template_content | Yes | 模板内容 | |
| universal_template | No | 是否为通用模板 | |
| variable_attributes | No | 模板参数 |