{"base_path":null,"components":null,"consumes":"","definitions":{"MsgTemplateRequest":{"description":"创建短信模板请求体。","properties":{"app_id":{"description":"应用ID,默认取签名所属的应用ID。","example":"81a72bf6-8555-4bd3-87c3-40faf821e36b","maxLength":50,"minLength":1,"type":"string"},"signature_id":{"description":"签名ID。","example":"ccdb9fe4-f1a8-4fcb-9aa5-29e03a55f174","maxLength":50,"minLength":1,"type":"string"},"template_content":{"description":"模板内容。","example":"尊敬的华为云会员,详情请咨询4000-955-988 ${1} ","maxLength":500,"minLength":1,"type":"string"},"template_desc":{"description":"模板描述。","maxLength":100,"minLength":1,"type":"string"},"template_name":{"description":"模板名称。","example":"KooMessage","maxLength":30,"minLength":1,"type":"string"},"template_type":{"description":"模板类型。默认取所属签名的签名类型。PROMOTION_TYPE:营销类,NOTIFY_TYPE:通知类。","enum":["PROMOTION_TYPE","NOTIFY_TYPE"],"example":"NOTIFY_TYPE","maxLength":20,"minLength":1,"type":"string"},"universal_template":{"default":0,"description":"是否为通用模板(暂不支持通用模板)。0:非通用模板,1:通用模板。","enum":["0","1"],"maxLength":10,"minLength":1,"type":"string"},"variable_attributes":{"description":"模板参数。","items":{"$ref":"#/definitions/VariableAttributes"},"maxItems":20,"minItems":1,"type":"array"}},"required":["signature_id","template_content","template_name","variable_attributes"],"type":"object"},"SmsErrorMsg":{"description":"错误模型。","properties":{"error_code":{"description":"结果状态码。","maxLength":32,"minLength":0,"type":"string"},"error_msg":{"description":"结果详情。","maxLength":32,"minLength":0,"type":"string"}},"type":"object"},"SmsTemplate":{"properties":{"template_id":{"description":"模板ID。","example":"******27-37eb-4229-bee9-0eba4d8a897f","maxLength":50,"minLength":1,"type":"string"},"template_name":{"description":"模板名称。","example":"auto_test789","maxLength":30,"minLength":1,"type":"string"}},"type":"object"},"VariableAttributes":{"properties":{"variable_desc":{"description":"参数描述。变量类型为TEXT(其他)时必填。","maxLength":100,"minLength":0,"type":"string"},"variable_index":{"description":"参数索引。","type":"integer"},"variable_type":{"description":"参数类型。PHONE:电话号码,NEWTEXT:解析标识,CHARDIGIT:其他号码(如验证码、订单号、密码等),DATETIME:日期时间,MONEY:金额,TEXT:其他。","enum":["PHONE","NEWTEXT","CHARDIGIT","DATETIME","MONEY","TEXT"],"example":"PHONE","maxLength":20,"minLength":1,"type":"string"}},"required":["variable_index","variable_type"],"type":"object"}},"description":null,"group_id":"57a445a5fb5d4ba5b80445bd4c5ec9b3","host":"koomessage.myhuaweicloud.cn","id":"c42ee04bac0c4f1295b447bba125c5a5","info_version":"v1","method":"post","name":"CreateAimMsgTemplate","parameters":{},"paths":{"/v1/sms/templates":{"post":{"consumes":["application/json"],"description":"该接口用于用户创建短信模板。","operationId":"CreateAimMsgTemplate","parameters":[{"description":"短信模板创建请求体。","in":"body","name":"CreateAimMsgTemplateRequestBody","required":true,"schema":{"$ref":"#/definitions/MsgTemplateRequest"}},{"description":"用户Token。通过调用IAM服务获取用户Token接口获取(响应消息头中X-Subject-Token的值)。","in":"header","name":"X-Auth-Token","required":true,"type":"string"},{"description":"请求体参数类型,该字段必须设置为:application/json。","in":"header","name":"Content-Type","required":true,"type":"string"}],"produces":["application/json"],"responses":{"200":{"description":"创建短信模板响应体。","examples":{"application/json":{"template_id":"1512***2","template_name":"模板测试AA"}},"schema":{"$ref":"#/definitions/SmsTemplate"}},"400":{"description":"非法参数。","schema":{"$ref":"#/definitions/SmsErrorMsg"}},"500":{"description":"内部错误。","schema":{"$ref":"#/definitions/SmsErrorMsg"}}},"schemes":["https"],"security":[{"apig-auth-iam":[]}],"summary":"创建短信模板","tags":["AimSmsTemplate"],"x-api-type":"open-api","x-apigateway-backend":{"httpVpcEndpoints":{"description":"","method":"POST","name":"lb-km-aim","path":"/v1/sms/templates","scheme":"https","timeout":30000},"type":"HTTP-VPC"},"x-apigateway-cors":false,"x-apigateway-match-mode":"NORMAL","x-apigateway-query-string-encode":"ENABLE","x-apigateway-request-type":"public","x-is-registered":"Y","x-order":0,"x-request-examples-1":{"signature_id":"65ba0c56-aa84-4e68-86a7-38af62c50707","template_content":"尊敬的华为云会员,详情请咨询4000-955**** ${1} ","template_desc":"模板测试","template_name":"模板测试AA","template_type":"NOTIFY_TYPE","universal_template":0,"variable_attributes":[{"variable_desc":"直发","variable_index":1,"variable_type":"NEWTEXT"}]},"x-request-examples-description-1":"创建一个名称为\"模板测试AA\",类型为通知类的短信模板。","x-request-examples-text-1":{"signature_id":"65ba0c56-aa84-4e68-86a7-38af62c50707","template_content":"尊敬的华为云会员,详情请咨询4000-955**** ${1} ","template_desc":"模板测试","template_name":"模板测试AA","template_type":"NOTIFY_TYPE","universal_template":0,"variable_attributes":[{"variable_desc":"直发","variable_index":1,"variable_type":"NEWTEXT"}]},"x-request-examples-url-1":"https://koomessage.myhuaweicloud.cn/v1/sms/templates","x-support-sdk":"Y"}}},"product_short":"KooMessage","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":{"apig-auth-app":{"in":"header","name":"Authorization","type":"apiKey","x-apigateway-auth-type":"AppSigv1"},"apig-auth-app-optional":{"in":"header","name":"Authorization","type":"apiKey","x-apigateway-auth-opt":{"access-auth-type":"optional"},"x-apigateway-auth-type":"AppSigv1"},"apig-auth-iam":{"in":"header","name":"unused","type":"apiKey","x-apigateway-auth-type":"IAM"},"apig-auth-iam-none":{"in":"header","name":"unused","type":"apiKey","x-apigateway-auth-type":"IAM_NONE"}},"summary":"创建短信模板","tags":"短信模板","uri":null,"version":"2.0"}