cURL
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" } }
Updates an existing monitor
monitors:read_write