保存流程
POST
/api/v1/rules/{id}请求参数
Path 参数
id
string
流程ID
Body 参数application/json
ruleChain
object (流程基础信息)
规则链基础信息
id
string
ID
name
string
名称
debugMode
boolean
调试模式
root
boolean
根节点
disabled
boolean
停用
true:上线,false:停用
configuration
object
配置
可自定义字段
additionalInfo
object
扩展信息
保存前端可视化额外信息
metadata
object
节点列表
firstNodeIndex
integer
第一个节点索引
默认0
endpoints
array[object (输入端节点配置) {8}]
输入端列表
nodes
array[object (流程节点配置) {6}]
规则链节点列表
connections
array[object (节点连接) {3}]
节点连接列表
示例
{
"ruleChain": {
"id": "string",
"name": "string",
"debugMode": true,
"root": true,
"disabled": true,
"configuration": {
"vars": {},
"secrets": "string"
},
"additionalInfo": {
"description": "string",
"layoutX": "string",
"layoutY": "string",
"createTime": "string",
"updateTime": "string",
"icon": "string",
"background": "string"
}
},
"metadata": {
"firstNodeIndex": 0,
"endpoints": [
{
"id": "string",
"type": "string",
"name": "string",
"debugMode": true,
"configuration": {},
"additionalInfo": {
"description": "string",
"layoutX": 0,
"layoutY": 0
},
"processors": null,
"routers": [
{
"id": "string",
"params": [
"string"
],
"from": {
"path": "string",
"configuration": null,
"processors": [
"string"
]
},
"to": {
"path": "string",
"configuration": null,
"wait": true,
"processors": [
"string"
]
}
}
]
}
],
"nodes": [
{
"id": "string",
"type": "string",
"name": "string",
"debugMode": true,
"configuration": {},
"additionalInfo": {
"description": "string",
"layoutX": 0,
"layoutY": 0,
"icon": "string",
"background": "string"
}
}
],
"connections": [
{
"fromId": "string",
"toId": "string",
"type": "string"
}
]
}
}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
object {0}
示例
{}
最后修改时间: 3 个月前