- 接口配置化
- PLM提供
- 验证引擎
- 单号配置获取
- 引擎
- 引擎-配置管理
修改配置
开发中
正式环境
https://occ-engine.yanwentech.com
正式环境
https://occ-engine.yanwentech.com
PUT
/api/management/config/{id}
请求参数
Path 参数
id
string
配置编码
Body 参数application/json
type
string
配置类型
name
string
名称
status
integer
状态
tags
string | null
标签
description
string
描述
content
string
具体配置
示例
{
"type": "string",
"name": "string",
"status": 0,
"tags": "string",
"description": "string",
"content": "string"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://occ-engine.yanwentech.com/api/management/config/' \
--header 'Content-Type: application/json' \
--data-raw '{
"type": "string",
"name": "string",
"status": 0,
"tags": "string",
"description": "string",
"content": "string"
}'
返回响应
🟢200成功
application/json
Body
success
boolean
必需
code
integer
必需
message
string
必需
data
object
必需
id
string
必需
name
string
必需
status
integer
必需
tags
string
必需
desc
null
必需
content
string
必需
type
string
必需
示例
{
"success": true,
"code": 0,
"message": "ok",
"data": {
"id": "01JF78JSFHXXBKZVGKPKV7RZ8M",
"name": "测试-DecisionTree4",
"status": true,
"tags": "tag1,tag2,tag3",
"description": "测试-DecisionTree",
"content": "{\"takeType\":\"all\",\"root\":{\"sorting\":0,\"expression\":\"{{ expressTime | compare_time: '>','2021-01-01' }}\",\"value\":\"全程轨迹\",\"nodes\":[{\"sorting\":0,\"expression\":\"{{ extendedcol | json_path: '$.CustomerCode' | eq: '300740110' }}\",\"value\":\"屏蔽轨迹\",\"nodes\":[]},{\"sorting\":1,\"expression\":\"{{ productCode | in:484 }}\",\"value\":\"全程轨迹\",\"nodes\":[{\"sorting\":0,\"expression\":\"{{ extendedcol | json_path: '$.CustomerCode' | eq: '30074011' }}\",\"value\":\"自定义-1\",\"nodes\":[]}]},{\"sorting\":2,\"expression\":\"{{ productCode | in: '10','1004','1021','1022','1023','1024','1025','1026' }}\",\"value\":\"全程轨迹\",\"nodes\":[{\"sorting\":0,\"condition\":{\"conjunction\":\"and\",\"children\":[{\"expression\":\"{{ countryId | in: '1','90','94' }}\"},{\"expression\":\"{{ serviceCode == '8908026' }}\"}]},\"value\":\"尾程轨迹\",\"nodes\":[]},{\"sorting\":1,\"expression\":\"{{ countryId | in: '10','11','18' }}\",\"value\":\"头程轨迹\",\"nodes\":[]}]}]}}",
"type": "DecisionTree"
}
}
🟠400参数不正确
修改于 2025-02-10 09:49:07