指令新建
更新时间:2024-11-04
1、接口地址:【POST】{IP}:{PORT}/open/v{versionId}/instruction/create
2、说明:用于新增指令
3、入参【请求的body中】
| 参数名 | 类型 | 是否可空 | 备注 |
|---|---|---|---|
| instructionName | string | 否 | 指令名称 |
| instructionMark | string | 否 | 指令标识 |
| instructionDescription | string | 是 | 指令描述 |
| failedAnswer | string | 是 | 指令失败话术 |
4、返回值
| 参数名 | 类型 | 父节点 | 备注 |
|---|---|---|---|
| code | int | HTTP状态码 | |
| time | long | 时间 | |
| msg | string | 状态信息 | |
| data | T | 返回数据 | |
| id | string | data | 指令 ID |
示例:
JSON
1{
2 "time": 1614052251574,
3 "data": {
4 "id": "xxxxxxxxxxxxxxxxxxxxxxxx"
5 },
6 "code": 200,
7 "msg": "OK"
8}
