{"base_path":null,"components":null,"consumes":"","definitions":{"ContentParam":{"description":"智能信息基础版参数名称。","properties":{"content_detail":{"description":"智能信息基础版参数内容,填写经过utf-8编码的文字。\n","example":"http://abc.com/1.jpg","maxLength":256,"minLength":0,"type":"string"},"content_source":{"description":"智能信息基础版参数源。\n- txt:内容源自纯文字\n","example":"url","maxLength":256,"minLength":0,"type":"string"},"content_type":{"description":"智能信息基础版参数类型。\n- txt:纯文字动参\n","example":"jpg","maxLength":256,"minLength":0,"type":"string"},"param_name":{"description":"智能信息基础版参数名称。","example":"参数1","maxLength":64,"minLength":0,"type":"string"}},"required":["content_detail","content_source","content_type","param_name"],"type":"object"},"CreateVmsSendTaskRequestBody":{"description":"生成发送短信请求体。","properties":{"dync_params":{"description":"群发动态参数数组。\n- 参数顺序按照模板创建时参数占位符的顺序传入,例如创建模板时设置动参有#p_1#、#p_2#、#p_3#,则传入的参数数组顺序第一个元素为#p_1#,第二个元素是#p_2#,第三个元素为#p_3#。\n- mobiles不填时,此字段被忽略。\n","items":{"$ref":"#/definitions/ContentParam"},"maxItems":100,"minItems":1,"type":"array"},"exdata":{"description":"智能信息基础版扩展字段。","example":"自己添加的说明","maxLength":256,"minLength":0,"type":"string"},"expiration_time":{"description":"失效时间(小时,范围是1~72小时)。","example":24,"maximum":72,"minimum":1,"type":"integer"},"individual_params":{"description":"个性化手机号码及动态参数数组。\n\nmobiles和individual_params字段只能二选一。\n","items":{"$ref":"#/definitions/IndividualParam"},"type":"array"},"mobiles":{"description":"群发手机号码列表,最多支持5000个号码。\n\n> 长度指的是单个号码的长度。\n> mobiles和individual_params字段只能二选一。\n","items":{"example":"13300000001","maxLength":20,"minLength":1,"type":"string"},"maxItems":5000,"minItems":1,"type":"array"},"task_name":{"description":"任务名称。","example":"test_task_name","maxLength":32,"minLength":0,"type":"string"},"tpl_id":{"description":"智能信息基础版模板ID。","example":"600000000","maxLength":9,"minLength":0,"type":"string"}},"required":["task_name","tpl_id"]},"CreateVmsTaskResponseMode":{"description":"创建任务请求体。","properties":{"desc":{"description":"智能信息基础版下发描述信息。","example":"下发成功","type":"string"},"ret_code":{"description":"智能信息基础版下发结果返回码。","example":"0","type":"string"},"task_id":{"description":"智能信息基础版下发任务批次ID。","example":"45971116","type":"string"}},"type":"object"},"CreateVmsTaskRsp":{"properties":{"data":{"$ref":"#/definitions/CreateVmsTaskResponseMode"},"message":{"description":"响应信息。","example":"success","type":"string"},"status":{"description":"状态码。","example":"200","type":"string"}}},"IndividualContentParam":{"description":"智能信息基础版参数名称。","properties":{"content_detail":{"description":"智能信息基础版参数内容,填写经过utf-8编码的文字。\n","example":"http://abc.com/1.jpg","maxLength":256,"minLength":0,"type":"string"},"content_source":{"description":"智能信息基础版参数源。txt:内容源自纯文字。\n","example":"url","maxLength":256,"minLength":0,"type":"string"},"content_type":{"description":"智能信息基础版参数类型。txt:纯文字动参。\n","example":"jpg","maxLength":256,"minLength":0,"type":"string"},"param_name":{"description":"智能信息基础版参数名称。","example":"参数1","maxLength":64,"minLength":0,"type":"string"}},"required":["param_name","content_type","content_source","content_detail"],"type":"object"},"IndividualParam":{"description":"个性化动态参数。","properties":{"dync_params":{"description":"个性化动态参数数组。\n参数顺序按照模板创建时参数占位符的顺序传入,例如创建模板时设置动参有#p_1#、#p_2#、#p_3#,则传入的参数数组顺序第一个元素为#p_1#,第二个元素是#p_2#,第三个元素为#p_3#。\n","items":{"$ref":"#/definitions/IndividualContentParam"},"type":"array"},"mobiles":{"description":"个性化动态参数号码列表,最多支持5000个号码。\n\n> 长度指的是单个号码的长度。\n","items":{"example":"13300000001","maxLength":20,"minLength":1,"type":"string"},"type":"array"}},"required":["mobiles","dync_params"],"type":"object"},"VmsErrorMsg":{"description":"错误模型。","properties":{"error_code":{"description":"结果状态码。","type":"string"},"error_msg":{"description":"结果详情。","type":"string"}}}},"description":null,"group_id":"57a445a5fb5d4ba5b80445bd4c5ec9b3","host":"koomessage.myhuaweicloud.cn","id":"84f89875f61e4197a8b602a6aa75fb28","info_version":"v1","method":"post","name":"CreateVmsSendTask","parameters":{},"paths":{"/v1/aim-basic/send-tasks":{"post":{"consumes":["application/json"],"deprecated":false,"description":"支持用户通过此接口进行智能信息基础版任务发送。","operationId":"CreateVmsSendTask","parameters":[{"description":"消息发送请求体","in":"body","name":"CreateVmsSendTaskRequestBody","required":true,"schema":{"$ref":"#/definitions/CreateVmsSendTaskRequestBody"}},{"description":"请求体参数类型,该字段必须设置为:application/json。","in":"header","name":"Content-Type","required":true,"type":"string"},{"in":"header","name":"X-Auth-Token","required":true,"type":"string"}],"produces":["application/json"],"responses":{"200":{"description":"智能信息基础版任务发送返回体。","examples":{"application/json":{"data":{"task_id":"8113760c-787c-4c87-82c8-1d27024fef34"},"message":"success","status":"200"}},"schema":{"$ref":"#/definitions/CreateVmsTaskRsp"}},"400":{"description":"非法参数。","schema":{"$ref":"#/definitions/VmsErrorMsg"}},"500":{"description":"内部错误。","schema":{"$ref":"#/definitions/VmsErrorMsg"}}},"schemes":["https"],"security":[{"apig-auth-iam":[]}],"summary":"发送智能信息基础版任务","tags":["VMSSendTask"],"x-apigateway-request-type":"Public","x-is-registered":"Y","x-opseverity":"Info","x-request-examples-1":{"dync_params":[{"content_detail":"会员","content_source":"txt","content_type":"txt","param_name":"p_1"},{"content_detail":"2022-02-03","content_source":"txt","content_type":"txt","param_name":"p_2"}],"expiration_time":"72","mobiles":["131****0000","131****0001"],"task_name":"测试-行程提醒","tpl_id":"800000002"},"x-request-examples-description-1":"发送智能信息基础版任务-动态参数。模板ID为\"800000002\",任务名称为\"测试-行程提醒\",失效时间为72小时。","x-request-examples-url-1":"https://koomessage.myhuaweicloud.cn/v1/aim-basic/send-tasks","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"}