{"base_path":"/","components":null,"consumes":"[\"application/json\"]","definitions":{"ApiTemplateResponse":{"properties":{"id":{"description":"模板主键ID","maxLength":64,"minLength":1,"type":"string","x-example":"460a2427-37eb-4229-bee9-0eba4d8a897f"},"template_name":{"description":"模板名称","example":"auto_test789","maxLength":128,"minLength":1,"type":"string"}},"title":"ApiTemplateResponse"},"SmsTemplateReq":{"properties":{"app_id":{"description":"应用主键ID","example":"9e61f59c-1a6b-4ee5-9651-5bca450694b3","maxLength":64,"minLength":1,"type":"string"},"brackets":{"description":"中括号类型。支持枚举值:\n1. CN: 中文类型\n2. GB: 英文类型","example":"GB","maxLength":16,"minLength":1,"type":"string"},"region":{"description":"地域\n1. cn:国内\n2. intl:","example":"cn","maxLength":16,"minLength":1,"type":"string","x-annotations":["@NotBlank","@JsonAlias({\"location\", \"region\"})"]},"send_country":{"description":"发送国家id列表,只有地域为国际时,该字段有效","example":"","items":{"format":"int64","maximum":2147483647,"minimum":0,"type":"integer"},"maxItems":3,"minItems":0,"type":"array"},"sign_id":{"description":"签名主键ID,只有地域为国内时,该字段有效","example":"******10-c3fb-427e-965c-a98ae844c5bd","maxLength":64,"minLength":1,"type":"string"},"template_content":{"description":"模板内容","example":"test","maxLength":500,"minLength":1,"type":"string"},"template_desc":{"description":"模板描述","example":"test","maxLength":500,"minLength":0,"type":"string"},"template_name":{"description":"模板名称","example":"auto_test789","maxLength":128,"minLength":1,"type":"string"},"template_type":{"description":"模板类型。只有地域为国内时,该字段有效。支持枚举值:\n1. VERIFY_CODE_TYPE: 验证码类\n2. PROMOTION_TYPE: 推广类\n3. NOTIFY_TYPE: 通知类","example":"NOTIFY_TYPE","maxLength":32,"minLength":1,"type":"string"},"universal_template":{"description":"是否为通用模板\n1. 0: 非通用模板\n2. 1: 通用模板","example":0,"format":"int32","maximum":2147483647,"minimum":1,"type":"integer"},"variable_attributes":{"description":"模板参数","items":{"$ref":"#/definitions/SmsTemplateVariableAttrReq"},"maxItems":20,"minItems":0,"type":"array"}},"required":["app_id","template_content","template_name","template_type","region"],"title":"SmsTemplateReq","x-imports":"com.fasterxml.jackson.annotation.JsonAlias;"},"SmsTemplateVariableAttrReq":{"properties":{"variable_desc":{"description":"变量说明,当变量类型为TEXT时,必填","example":"test","maxLength":100,"minLength":0,"type":"string"},"variable_index":{"description":"变量索引,对应模板内容变量索引","example":1,"format":"int32","maximum":20,"minimum":1,"type":"integer"},"variable_type":{"description":"变量类型,目前支持:PHONE|CHARDIGIT|DATETIME|MONEY|TEXT|NEWTEXT|LONGTEXT","example":"TEXT","pattern":"PHONE|CHARDIGIT|DATETIME|MONEY|TEXT|NEWTEXT|LONGTEXT","type":"string"}},"required":["variable_index","variable_type"],"title":"SmsTemplateVariableAttrReq","type":"object"}},"description":null,"group_id":"6ec12426d3234d80b6da21f8367b6607","host":"msgsms.cn-north-4.myhuaweicloud.com","id":"979148ecc1814738b56d8ef88fc4edb4","info_version":"v2","method":"put","name":"UpdateTemplate","parameters":{"Content-Type":{"default":"application/json;charset=utf8","description":"请求体参数类型,该字段必须设置为:application/json;charset=utf8","in":"header","maxLength":255,"minLength":1,"name":"Content-Type","required":true,"type":"string","x-example":"application/json;charset=utf8"},"X-Auth-Token":{"description":"用户Token。通过调用IAM服务获取用户Token接口获取(响应消息头中X-Subject-Token的值)","in":"header","maxLength":32768,"minLength":1,"name":"X-Auth-Token","required":true,"type":"string","x-example":"******JKoZIhvcNAQcCoIIDgzCCXXXXX"},"project_id":{"description":"项目ID。获取方法请参见 [获取帐号、用户、项目的名称和ID](https://support.huaweicloud.com/api-msgsms/sms_05_0020.html)。","in":"path","name":"project_id","pattern":"^[a-fA-F0-9]{1,32}$","required":true,"type":"string","x-example":"******c55c3c4526b2ed7a0213bc9871"}},"paths":{"/v2/{project_id}/msgsms/templates/{id}":{"put":{"consumes":["application/json"],"deprecated":false,"description":"该接口用于用户修改模板信息,目前仅支持审核不通过的短信模板重新修改","operationId":"UpdateTemplate","parameters":[{"$ref":"#/parameters/X-Auth-Token"},{"$ref":"#/parameters/Content-Type"},{"$ref":"#/parameters/project_id"},{"description":"模板ID","in":"path","maxLength":64,"minLength":1,"name":"id","required":true,"type":"string"},{"description":"请求Body参数","in":"body","name":"UpdateTemplateRequestBody","required":true,"schema":{"$ref":"#/definitions/SmsTemplateReq"}}],"produces":["*/*"],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiTemplateResponse"}},"201":{"description":"Created"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not Found"}},"schemes":["https"],"summary":"修改短信模板","tags":["TemplateManagement"],"x-api-type":"open-api","x-imports":["com.huawei.cloud.common.RestrictCheck;","com.huawei.cloud.common.operation.*;","com.huawei.cloud.common.log.SourceType;","static com.huawei.cloud.common.restrictcheck.RestrictFrozenType.*;"],"x-internal":false,"x-is-registered":"Y","x-methodAnnotations":["@Operation(name = \"用户修改短信模板\", action = OperateType.UPDATE, resource = \"console.root.message.msgtemplate\", requireLog = true, source = SourceType.API)","@RestrictCheck(serviceType = \"hws.service.type.rtcsms\", restrictScene = {TENANT_FROZEN, SERVICE_FROZEN})"],"x-service":"messageService","x-support-sdk":"Y"}}},"product_short":"MSGSMS","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"修改短信模板","tags":"短信签名模板API","uri":null,"version":"2.0"}