更新账号并重连
PUT
/mj/account/{id}/update-reconnect
账号管理
请求参数
Path 参数
id
string
账号ID
Body 参数application/json
coreSize
integer <int32>
并发数
示例值:
3
enable
boolean
是否可用
示例值:
true
mjBotChannelId
string
MJ私信ID
nijiBotChannelId
string
niji私信ID
queueSize
integer <int32>
等待队列长度
示例值:
10
remark
string
备注说明
remixAutoSubmit
boolean
remix自动提交
示例值:
false
timeoutMinutes
integer <int32>
可选
示例值:
5
userAgent
string
可选
userToken
string
用户Token
示例
{
"coreSize": 3,
"enable": true,
"mjBotChannelId": "string",
"nijiBotChannelId": "string",
"queueSize": 10,
"remark": "string",
"remixAutoSubmit": false,
"timeoutMinutes": 5,
"userAgent": "string",
"userToken": "string"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://api.aigcbest.top/mj/account//update-reconnect' \
--header 'Content-Type: application/json' \
--data-raw ''
返回响应
🟢200OK
application/json
Body
code
integer <int32>
可选
description
string
可选
示例
{
"code": 0,
"description": "string"
}
🟢201Created
🟠401Unauthorized
🟠403Forbidden
🟠404Not Found
修改于 2024-01-14 03:35:31