---
title: "Update a monitor"
method: PUT
path: "/monitoring/monitors/{id}"
tags: ["Monitoring"]
---

# Update a monitor

`PUT /monitoring/monitors/{id}`

## Request

- Base URL: `https://api.loadster.com`
- URL: `https://api.loadster.com/monitoring/monitors/{id}`
- Auth: HTTP bearer

## Path parameters

- `id` string, required

## Request body

- Monitor
  - `id` string
  - `name` string
  - `repositoryProjectId` string
  - `repositoryScriptId` string
  - `frequency` integer
  - `enabled` boolean
  - `failureThreshold` integer
  - `recoveryThreshold` integer
  - `acceptableResponseTimeAverageMin` integer
  - `acceptableResponseTimeAverageMax` integer
  - `acceptableResponseTimeTotalMin` integer
  - `acceptableResponseTimeTotalMax` integer
  - `acceptableCycleDurationMin` integer
  - `acceptableCycleDurationMax` integer
  - `acceptableTimeToFirstByteMax` integer
  - `acceptableFirstContentfulPaintMax` integer
  - `acceptableLargestContentfulPaintMax` integer
  - `acceptableCumulativeLayoutShiftMax` number, double
  - `acceptableTotalBlockingTimeMax` integer
  - `acceptablePerformanceScoreMin` integer
  - `notificationsEnabled` boolean
  - `pausedByMaintenanceWindow` boolean
  - `engineIds` string[]
  - `notificationPolicyIds` string[]
  - `maintenanceWindowIds` string[]
  - `tags` string[]
  - `startedMonitorNumberForCustomer` integer
  - `cycles` MonitorCycle[]
    - `id` string
    - `repositoryProjectId` string
    - `repositoryScriptId` string
    - `repositoryScriptRunId` string
    - `dateCreated` string, date-time
    - `dateScheduled` string, date-time
    - `dateStarted` string, date-time
    - `dateFinished` string, date-time
    - `status` string
    - `message` string
    - `scriptDuration` integer
    - `responseTimeAvg` integer
    - `responseTimeTotal` integer
    - `timeToFirstByte` integer
    - `firstContentfulPaint` integer
    - `largestContentfulPaint` integer
    - `cumulativeLayoutShift` number, double
    - `totalBlockingTime` integer
    - `performanceScore` integer
    - `requestCount` integer
    - `engineId` string
  - `steps` MonitorStep[]
    - `type` string
    - `method` string
    - `baseUrl` string

## Response `200`

OK

- Monitor
  - `id` string
  - `name` string
  - `repositoryProjectId` string
  - `repositoryScriptId` string
  - `frequency` integer
  - `enabled` boolean
  - `failureThreshold` integer
  - `recoveryThreshold` integer
  - `acceptableResponseTimeAverageMin` integer
  - `acceptableResponseTimeAverageMax` integer
  - `acceptableResponseTimeTotalMin` integer
  - `acceptableResponseTimeTotalMax` integer
  - `acceptableCycleDurationMin` integer
  - `acceptableCycleDurationMax` integer
  - `acceptableTimeToFirstByteMax` integer
  - `acceptableFirstContentfulPaintMax` integer
  - `acceptableLargestContentfulPaintMax` integer
  - `acceptableCumulativeLayoutShiftMax` number, double
  - `acceptableTotalBlockingTimeMax` integer
  - `acceptablePerformanceScoreMin` integer
  - `notificationsEnabled` boolean
  - `pausedByMaintenanceWindow` boolean
  - `engineIds` string[]
  - `notificationPolicyIds` string[]
  - `maintenanceWindowIds` string[]
  - `tags` string[]
  - `startedMonitorNumberForCustomer` integer
  - `cycles` MonitorCycle[]
    - `id` string
    - `repositoryProjectId` string
    - `repositoryScriptId` string
    - `repositoryScriptRunId` string
    - `dateCreated` string, date-time
    - `dateScheduled` string, date-time
    - `dateStarted` string, date-time
    - `dateFinished` string, date-time
    - `status` string
    - `message` string
    - `scriptDuration` integer
    - `responseTimeAvg` integer
    - `responseTimeTotal` integer
    - `timeToFirstByte` integer
    - `firstContentfulPaint` integer
    - `largestContentfulPaint` integer
    - `cumulativeLayoutShift` number, double
    - `totalBlockingTime` integer
    - `performanceScore` integer
    - `requestCount` integer
    - `engineId` string
  - `steps` MonitorStep[]
    - `type` string
    - `method` string
    - `baseUrl` string

---

[API](https://skmtc.dev/loadster/apis/loadster-api.md) · [All operations](https://skmtc.dev/loadster/apis/loadster-api/llms.txt) · [OpenAPI document](https://skmtc.dev/loadster/apis/loadster-api/revisions/1cf3073616fd?raw)
