---
title: "PATCH /monitors/{monitorName}"
method: PATCH
path: "/monitors/{monitorName}"
---

# PATCH /monitors/{monitorName}

`PATCH /monitors/{monitorName}`

Updates the <code>aggregationPeriod</code> for a monitor. Monitors support an <code>aggregationPeriod</code> of either <code>30</code> or <code>60</code> seconds. This action requires the <code>monitorName</code> and <code>probeId</code> parameter. Run <code>ListMonitors</code> to get a list of monitor names.

## Path parameters

- `monitorName` string, required

## Request body

- object
  - `aggregationPeriod` integer, required — The aggregation time, in seconds, to change to. This must be either <code>30</code> or <code>60</code>.

## Response `200`

Success

- UpdateMonitorOutput
  - `monitorArn` string, required — The ARN of the monitor that was updated.
  - `monitorName` string, required — The name of the monitor that was updated.
  - `state` 'PENDING' | 'ACTIVE' | 'INACTIVE' | 'ERROR' | 'DELETING', required — The state of the updated monitor.
  - `aggregationPeriod` integer — The changed aggregation period.
  - `tags` object — The list of key-value pairs associated with the monitor.

## Other responses

- `480` — AccessDeniedException
- `481` — ResourceNotFoundException
- `482` — ThrottlingException
- `483` — ValidationException
- `484` — InternalServerException
- `485` — ServiceQuotaExceededException

---

[API](https://skmtc.net/aws/apis/networkmonitor.md) · [All operations](https://skmtc.net/aws/apis/networkmonitor/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/networkmonitor/versions/f1fb54da1a06/schema)
