Skip to main content
PATCH
/
api
/
v1
/
monitors
/
{id}
Update monitor
curl --request PATCH \
  --url https://app.larm.dev/api/v1/monitors/{id} \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "config": {},
  "interval_seconds": 123,
  "timeout_ms": 123,
  "confirm_down_minutes": 123,
  "confirm_up_minutes": 123,
  "enabled": true
}
'
{
  "data": {
    "id": "550e8400-e29b-41d4-a716-446655440000",
    "name": "Production site",
    "check_type": "http",
    "enabled": true,
    "interval_seconds": 60,
    "timeout_ms": 10000,
    "confirm_down_minutes": 0,
    "confirm_up_minutes": 0,
    "config": {
      "url": "https://example.com",
      "method": "GET",
      "expected_status_codes": [200],
      "follow_redirects": true
    },
    "created_at": "2025-03-01T12:00:00Z",
    "updated_at": "2025-03-01T14:30:00Z"
  }
}
Requires monitors:read_write permission. Only include the fields you want to change.
id
string
required
Monitor ID (UUID)
name
string
Monitor name (1–255 characters)
config
object
Type-specific configuration. See Monitors for fields per type.
interval_seconds
integer
Check interval in seconds (minimum: 30)
timeout_ms
integer
Timeout in milliseconds (range: 1000–30000)
confirm_down_minutes
integer
Minutes of consecutive failures before marking down
confirm_up_minutes
integer
Minutes of consecutive successes before marking recovered
enabled
boolean
Whether the monitor is active
{
  "data": {
    "id": "550e8400-e29b-41d4-a716-446655440000",
    "name": "Production site",
    "check_type": "http",
    "enabled": true,
    "interval_seconds": 60,
    "timeout_ms": 10000,
    "confirm_down_minutes": 0,
    "confirm_up_minutes": 0,
    "config": {
      "url": "https://example.com",
      "method": "GET",
      "expected_status_codes": [200],
      "follow_redirects": true
    },
    "created_at": "2025-03-01T12:00:00Z",
    "updated_at": "2025-03-01T14:30:00Z"
  }
}