跳转到主要内容
POST
/
v1
/
monitors
/
{monitor_id}
/
pause
暂停监控器
curl --request POST \
  --url https://api.olostep.com/v1/monitors/{monitor_id}/pause \
  --header 'Authorization: Bearer <token>'
{
  "id": "monitor_5hktz469jy",
  "object": "monitor",
  "created_at": 1777983215,
  "updated_at": 1777986822,
  "cron_expression": "13 13 * * ? *",
  "fda_id": "fda_5hktz469jy",
  "frequency": "daily",
  "metadata": {},
  "notification_channel": "email",
  "notification_target": "example@olostep.com",
  "query": "Gather the new blogposts from example website and send me updates with new posts.",
  "status": "paused",
  "team_id": "team_5hktz469jyF"
}

Documentation Index

Fetch the complete documentation index at: https://docs.olostep.com/llms.txt

Use this file to discover all available pages before exploring further.

授权

Authorization
string
header
必填

Bearer认证头格式为Bearer ,其中是你的认证令牌。

路径参数

monitor_id
string
必填

唯一的监控器标识符。必须以 monitor_ 开头。

Pattern: ^monitor_

响应

监控器暂停成功。返回的监控器 status 被设置为 paused

id
string

唯一的监控标识符。

object
string
示例:

"monitor"

team_id
string
status
enum<string>

监控生命周期状态。常见值:active(按计划运行),paused(通过 /pause 禁用计划,可以通过 /resume 恢复),deleted(软删除)。

可用选项:
active,
paused,
deleted
fda_id
string
query
string

自然语言的监控意图。如果查询中包含 URL,监控将专注于该 URL。

frequency
string

自然语言的计划指令(例如:'每天在 9am America/Los_Angeles' 或 '每个工作日在 14:30')。如果未指定时区,则使用 UTC。

cron_expression
string | null
notification_channel
enum<string>
可用选项:
email,
webhook,
sms
notification_target
string
metadata
object
output_schema
object

可选的 JSON 模式,用于强制结构化监控提取输出。

error_message
string | null
created_at
integer

Unix 时间戳。

updated_at
integer

Unix 时间戳。