修改定时发送规则
PUT
/croncmds请求参数
Query 参数
id
number
ID
cron
string
必需
定时,支持5位域或6位域
示例值:
0 */1 * * *
cmd
string
发送的指令或内容
to_self
string
是否发给自己处理
示例值:
true或false
to_others
string
可选
发送给其他目标,可以是群组(前缀为xxgroup:xxx),也可以是个人(前缀是xxindiv:xxx),多个目标用英文逗号隔开
示例值:
qqgroup:123,tggroup:456
memo
string
备注
Header 参数
Authorization
string
必需
/open/auth/token接口获取的Bearer类型的token
示例值:
Bearer 0cb972b0-516c-8c7a-8c95-955263eed4c1
Body 参数application/json
id
number
必需
cron
string
必需
cmd
string
必需
to_self
boolean
必需
to_others
string
可选
memo
string
可选
示例
{
"id": 0,
"cron": "string",
"cmd": "string",
"to_self": true,
"to_others": "string",
"memo": "string"
}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
必需
message
string
可选
示例
{
"code": 200
}
最后修改时间: 1 年前