huawei-cloud-api-definitions-KooMessage 0.1.20260108

Huawei Cloud API definitions, generated from OpenAPI spec
Documentation
1
{"base_path":null,"components":null,"consumes":"","definitions":{"AimSaErrorMsg":{"properties":{"error_code":{"description":"错误码。","type":"string"},"error_msg":{"description":"结果详情。","type":"string"}}},"UpdatePubInfoRequestBody":{"description":"更新服务号请求体。","properties":{"areas_for_auto_get_port":{"description":"自动收集端口生效的地区列表。地区取值见《地区名称列表》。\n\n> auto_get_port为1时,该字段有效。不填则默认全国,不允许传入重叠地区。\n","example":[""],"items":{"type":"string"},"type":"array"},"authorization_files":{"description":"授权证明图片资源ID,最多支持6张。","example":["b16023e2e7c24418aa6b4e471d6b78b8","da916e86576d43f1895ffa0f233f5cb2"],"items":{"type":"string"},"maxItems":6,"minItems":0,"type":"array"},"auto_get_port":{"description":"自动获取端口。","example":0,"maximum":1,"minimum":0,"type":"integer"},"change_reason":{"description":"更新原因。","example":"修改原因","maxLength":200,"minLength":1,"type":"string"},"industry":{"description":"从事行业,默认取服务号所属商家的行业分类。\n- 1:金融理财\n- 2:社交通讯\n- 3:影音娱乐\n- 4:旅游出行\n- 5:购物\n- 6:本地生活\n- 7:运动健康\n- 8:教育培训\n- 9:新闻阅读\n- 10:运营商 \n- 11:其他\n","example":1,"maximum":11,"minimum":1,"type":"integer"},"logo_img":{"description":"服务号LOGO图片资源ID。\n\n> 通过上传智能信息服务号图片资源接口上传LOGO图片后获得的图片resource_id。图片要求大于等于240*240且比例相同。\n","example":"718ae5c3add041048ff00b3d00a23852","maxLength":32,"minLength":32,"type":"string"},"pub_abstract":{"description":"服务号简介。","example":"修改的服务号简介","maxLength":75,"minLength":1,"type":"string"},"pub_name":{"description":"服务号名称。","example":"修改的服务号名称","maxLength":15,"minLength":1,"type":"string"},"pub_remark":{"description":"服务号备注。","example":"修改的服务号备注","maxLength":15,"minLength":1,"type":"string"},"signs_for_auto_get_port":{"description":"自动收集端口使用的签名列表。\n\n> auto_get_port为1时,该字段为必填,每个签名长度须为2-18个字符,每个服务号签名不可以重复。\n","items":{"example":"xxxx","type":"string"},"maxItems":5,"minItems":0,"type":"array"}},"required":["change_reason"]},"UpdatePubInfoResponseModel":{"description":"更改服务号详情返回体。","properties":{"data":{"description":"请求成功返回的数据。","properties":{"pub_update_log_id":{"description":"服务号更新记录ID。","example":"6014","type":"string"}},"type":"object"}}},"UpdatePubInfoRsp":{"properties":{"data":{"$ref":"#/definitions/UpdatePubInfoResponseModel"}}}},"description":null,"group_id":"57a445a5fb5d4ba5b80445bd4c5ec9b3","host":"koomessage.myhuaweicloud.cn","id":"13811c6a6fd14c90af0668d36af95e5b","info_version":"v1","method":"post","name":"UpdatePubInfo","parameters":{},"paths":{"/v1/aim-sa/pubs/{pub_id}":{"post":{"consumes":["application/json","application/x-www-form-urlencoded"],"description":"支持用户更新服务号信息。","operationId":"UpdatePubInfo","parameters":[{"description":"服务号ID。","in":"path","name":"pub_id","required":true,"type":"string"},{"description":"用户Token。通过调用IAM服务获取用户Token接口获取(响应消息头中X-Subject-Token的值)。","in":"header","name":"X-Auth-Token","required":true,"type":"string"},{"description":"更新服务号请求体。","in":"body","name":"UpdatePubInfoRequestBody","required":false,"schema":{"$ref":"#/definitions/UpdatePubInfoRequestBody"}},{"description":"请求体参数类型,该字段必须设置为:application/json。","in":"header","name":"Content-Type","required":true,"type":"string"}],"responses":{"200":{"description":"返回信息。","examples":{"application/json":{"data":{"data":{"pub_update_log_id":"10202"}}}},"schema":{"$ref":"#/definitions/UpdatePubInfoRsp"}},"400":{"description":"非法参数。","schema":{"$ref":"#/definitions/AimSaErrorMsg"}},"500":{"description":"内部错误。","schema":{"$ref":"#/definitions/AimSaErrorMsg"}}},"security":[{"apig-auth-iam":[]}],"summary":"更新服务号信息","tags":["AimSaPub"],"x-apigateway-request-type":"Public","x-is-registered":"Y","x-request-examples-1":{"authorization_files":["f3335e54b86145409cacfac4bf17cccc"],"auto_get_port":1,"change_reason":"修改名称","industry":2,"logo_img":"6245269fa0214a81b55f12ec3c81cccc","pub_abstract":"尊享酷玩的摘要","pub_name":"尊享酷玩","pub_remark":"仅测试使用","signs_for_auto_get_port":["华为云KooMessage"]},"x-request-examples-description-1":"根据服务号ID更新服务号信息。设置修改原因为\"修改名称\",修改服务号名称为\"尊享酷玩\"。","x-request-examples-url-1":"https://koomessage.myhuaweicloud.cn/v1/aim-sa/pubs/29333b06990f4a5ca3b13ffb0c67cccc","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"}