Skip to content
Navigation

Update Monitor

PATCH /v1/monitors/{id}
Free (0 credits) Permission: monitors:write

Updates monitor settings. Changing the webhook URL clears any webhook_failing status.

Authorization

  • bearerAuth: optional HTTP
  • apiKeyAuth: optional API key in header

Path parameters

  • id: required string

Request body JSON required

  • name: optional string
  • keywords: optional array ofstring
  • exclude: optional array ofstring
  • subreddits: optional array ofstring
  • posts: optional boolean
  • comments: optional boolean
  • nsfw: optional boolean
  • webhook_url: optional string | null
  • webhook_kind: optional generic|slack|discord|telegram|null

Returns

200

Updated monitor

JSON
  • monitor: optional object
    • id: required string
    • name: required string
    • keywords: required array ofstring
    • include_posts: required boolean
    • include_comments: required boolean
    • nsfw: required boolean
    • status: required active|paused|paused_balance|deleted
    • next_charge_at: required string
      format: date-time
    • created_at: required string
      format: date-time
    • updated_at: required string
      format: date-time
    • exclude: optional array ofstring
    • subreddits: optional array ofstring
    • webhook_url: optional string | null
    • webhook_kind: optional generic|slack|discord|telegram|null
    • webhook_failing: optional boolean
    • last_match_at: optional string | null
      format: date-time

400

Bad request (invalid parameter or unknown action)
JSON
  • error: required object

    Some codes add fields, such as limit and used on monitor_limit_reached and upgrade_url on rate_limited and daily_quota_exceeded.

    • code: required string
    • message: required string
    • retryable: required boolean
    • retry_after: optional integer

      Seconds to wait before retrying.

    • request_id: optional string

      The request's X-Request-Id; include it when reporting an issue.

401

Missing or invalid API key or OAuth access token
JSON
  • error: required object

    Some codes add fields, such as limit and used on monitor_limit_reached and upgrade_url on rate_limited and daily_quota_exceeded.

    • code: required string
    • message: required string
    • retryable: required boolean
    • retry_after: optional integer

      Seconds to wait before retrying.

    • request_id: optional string

      The request's X-Request-Id; include it when reporting an issue.

404

Requested user or resource not found
JSON
  • error: required object

    Some codes add fields, such as limit and used on monitor_limit_reached and upgrade_url on rate_limited and daily_quota_exceeded.

    • code: required string
    • message: required string
    • retryable: required boolean
    • retry_after: optional integer

      Seconds to wait before retrying.

    • request_id: optional string

      The request's X-Request-Id; include it when reporting an issue.

Type to search…

↑↓ navigate ↵ select Esc close