编辑来源
POST https://qw-openapi-tx.dustess.com/source/v1/edit?accessToken=
Content-Type: application/json
参数名 | 类型 | 说明 | 是否必须 |
---|---|---|---|
sourceCode | String | 来源节点id | True |
name | String | 来源名称,不传则不修改 | false |
isToAnother | Bool | 是否可以修改为其他来源 不传则不修改 | False |
isEnable | Bool | 是否启用 不传则不修改 | false |
json
- Request-Example:{
"sourceCode": "",
"name": "添加一个试试",
"isToAnother": false,
"isEnable": true
}
参数名 | 类型 | 说明 |
---|---|---|
success | Bool | 请求成功失败标识 |
code | Int | 响应码 |
msg | String | 响应信息 |
data | Object | 数据信息 |
traceId | String | 上下文链路id |
json
- Response-Example:{
"code": 0,
"data": {},
"msg": "OK",
"success": true,
"traceId": "544d92b7-148f-9978-96cf-aede06cf1693"
}
json
- Response-Example:{
"code": 20110216,
"data": {},
"msg": "预设来源不允许编辑",
"success": false,
"traceId": "eac6399c-de19-993d-92dd-a2739bc2a6aa"
}