跳转到主要内容
POST
/
safari
/
automation
/
rule
/
delete
删除自动化规则
curl --request POST \
  --url 'https://api.flashcat.cloud/safari/automation/rule/delete?app_key=' \
  --header 'Content-Type: application/json' \
  --data '
{
  "rule_id": "auto_7NnLzY2Qp8xS4kUaV3mR6b"
}
'
{
  "request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
  "data": null
}

调用限制

速率限制1,000 次/分钟50 次/秒 每账户
权限有效 app_key;管理操作要求调用者可管理目标规则

使用说明

  • 可以创建个人规则,也可以创建当前 account 下任意团队规则;team_id 创建后不可修改。
  • 列表可见性与 Session 列表对齐:Owner / 管理员可见全部;普通成员可见自己创建的规则和自己团队的规则。
  • http_post_token 只在创建或轮换 token 的响应中返回,请立即保存。

授权

app_key
string
query
必填

App key issued from the Flashduty console. Required on every public API call. Keep it secret — it grants the same access as the owning account.

请求体

application/json
rule_id
string
必填

规则 ID。

响应

Success

Standard response envelope used by every Flashduty public API. On success data contains the endpoint-specific payload and error is absent. On failure error is present and data is absent. request_id is always present and is also mirrored in the Flashcat-Request-Id response header.

request_id
string
必填

Unique ID for this request. Mirrored in the Flashcat-Request-Id header. Include it when reporting issues.

示例:

"01HK8XQE3Z7JM2NTFQ5YJ8P9R4"

error
object

Error payload inside the response envelope. Present only on non-2xx responses.

data
null

成功时固定为 null。