# 设置消息来源
该接口用于新增/编辑消息来源
# 关联文档:
请求方式:POST
请求地址:https://$basehost/gateway/qopen/SetMsgSource
body参数:
{
"type": 1,
"name": "工作台"
}
字段 | 类型 | 必填 | 说明 |
---|---|---|---|
type | int | 是 | 来源类型 |
name | string | 是 | 来源名,最大长度10字符 |
返回值:
{
"data": {
"id": 1
},
"errcode": 0,
"errmsg": "",
"hint": ""
}
返回说明
字段 | 类型 | 说明 |
---|---|---|
errcode | int | 状态码,0为正常,非0代表错误 |
errmsg | string | 错误信息 |
data | json | json返回值 |
id | int | 记录id |
hint | string | 请求日志ID |