customId必须从查询任务接口返回的buttons数组中原样获取,不可手动拼接。
| 项目 | 说明 |
|---|---|
| 请求方式 | POST |
| 请求路径 | /mj/submit/action |
| 认证方式 | Authorization: Bearer {API_KEY} |
| Content-Type | application/json |
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
taskId | string | 是 | 原任务ID |
customId | string | 是 | 操作标识,从查询任务接口 buttons[].customId 原样复制 |
chooseSameChannel | boolean | 否 | 是否选择同一频道下的账号,默认只使用任务关联的账号 |
notifyHook | string | 否 | 回调地址,为空时使用全局 notifyHook |
state | string | 否 | 自定义参数 |
| 参数 | 类型 | 说明 |
|---|---|---|
code | int | 状态码:1 提交成功,21 任务已存在(需二次确认时配合 Modal 接口使用),22 排队中 |
description | string | 状态描述 |
result | string | 新任务ID,后续用它轮询查询接口 |
properties | object | 附加信息 |
{
"code": 1,
"description": "提交成功",
"result": "1781524431429700",
"properties": {
"numberOfQueues": 0,
"discordInstanceId": "273d9093c1c54b6b"
}
}