增加
场景描述
调用该接口增加VDN技能组。
接口方法
该接口仅支持POST方法,不支持GET、PUT、DELETE等方法。
接口URI
https://ip:port/agentgateway/resource/config/vdn/skillGroup?skillGroupId=5
其中,ip为CC-Gateway服务器地址,port为CC-Gateway服务器的HTTPS端口号。
|
序号 |
参数名 |
数据类型 |
是否必选 |
说明 |
|---|---|---|---|---|
|
1 |
skillGroupId |
number |
False |
技能组编号。 取值的类型为整数,取值范围为1~2000。 如果为null或0,则返回一个skillGroupId。 |
日志中的方法名
addSkillGroup
请求消息
- 消息头
表2 消息头参数说明 序号
名称
参数类型
是否必选
说明
1
Content-Type
string
True
消息主体编码方式,缺省值:application/json; charset=UTF-8
2
Guid
string
True
Guid的取值为C5 智能辅助类接口鉴权方式接口返回的guid。
- 消息体
表3 消息体参数说明 序号
名称
参数类型
是否必选
说明
1
skillGroupName
string
True
技能组名。
最大长度为64字节,不含特殊字符“"[]'&()=;<>,”,不为空字符
2
skills
array
False
技能组中包含技能的对象数组。单个技能对象的定义如表4 所示
响应消息
|
序号 |
名称 |
参数类型 |
说明 |
|---|---|---|---|
|
1 |
message |
string |
描述。 |
|
2 |
retcode |
number |
操作的结果原因码。 取值类型为整数。
|
|
3 |
result |
array |
技能组新增结果信息 |
|
序号 |
名称 |
参数类型 |
说明 |
|---|---|---|---|
|
3.1 |
skillGroupId |
number |
技能组ID |
报文样例
- 消息头
Content-Type:application/json; charset=UTF-8 Guid:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.AgentGateway1
- 请求参数
{ "skillGroupName":"1234", "skills":[{ "skillId":1, "skillPower":1, "agentPower":1 }] } - 响应参数
{ "message": "success", "retcode": "0", "result": { "skillGroupId": 5 } }