自定义fail_type多语言
适用版本>=v7.0.2412b.20241226
接口说明:添加/修改自定义fail_type信息
请求说明
| 请求地址 | 配置域名+/openapi+v7/filetransfer/fail_type/add |
|---|---|
| 请求方法 | POST |
| 签名方式 | KSO-1(配置域名+/openapi不参与签名) |
| 权限要求 | 文件摆渡(应用授权) kso.filetransfer.readwrite |
请求头(Header)
| 名称 | 参数类型 | 是否必填 | 说明 |
|---|---|---|---|
| Content-Type | string | 是 | 使用:application/json |
| X-Kso-Date | string | 是 | RFC1123 格式的日期,例: Wed, 23 Jan 2013 06:43:08 GMT |
| X-Kso-Authorization | string | 是 | KSO-1 签名值,详见《签名方法》 |
| Authorization | string | 是 | 授权凭证,格式为:Bearer {access_token} |
请求体(Body)
| 名称 | 类型 | 是否必填 | 说明 | | :---------------- | :------: | :-----------------------------------------------: | :-------------------------------------------------- | ----- | --------- | | custom_fail_info | []object | 是 | 自定义fail信息 | | ∟ fail_type | string | 是 | 自定义fail_type | | ∟ fail_custom | string | 是 | 自定义多语言描述 ,格式为json,json的key枚举为en-us | zh-tw | zh-cn ... |
请求体示例
json
{
"custom_fail_info": [
{
"fail_custom": "{\"en-us\": \"newwork err test2\",\"zh-tw\": \"網絡失敗test2\",\"zh-cn\": \"网络失败test1\"}",
"fail_type": "sss_sdsdsd3"
},
{
"fail_custom": "{\"en-us\": \"newwork err test1\",\"zh-tw\": \"網絡失敗test2\",\"zh-cn\": \"网络失败test1\"}",
"fail_type": "sss_sdsdsd4"
}
]
}响应体(Response)
| 名称 | 类型 | 说明 |
|---|---|---|
| data | object | 驱动盘信息 |
| ∟ id | string | 审批实例id |
| code | integer | 错误码 |
| msg | string | 状态信息 |
| detail | string | 详细信息 |
响应体示例
json
{
"data": {
"id": "string"
},
"code": 20000000,
"detail": "string",
"msg": "string"
}