Bot模板 开关
更新时间:2026-03-10
POST
/v1/waf/botTemplate/switch
Bot模板 开关
请求参数
Headers 参数
除公共头域外,无其它特殊头域
Body 参数
key
string
模板唯一标识
必选
switch
integer
模板开关状态
必选
请求结构
{
"key": "模板唯一标识",
"switch": 0
}
示例代码
Bot模板开关状态设置
curl -X POST "https://example.com/v1/waf/botTemplate/switch" \
-H "Content-Type: application/json" \
-d '{
"key": "template_key_example",
"switch": 1
}'
{
"key": "template_key_example",
"switch": 1
}
返回响应
Headers 参数
除公共头域外,无其它特殊头域
返回参数
status
integer
状态码
必选
msg
string
返回信息
必选
操作成功时的返回结果
成功响应示例
{
"status": 200,
"msg": "success"
}
