Update Monitor
updateMonitorUpdate an existing Uptime Kuma monitor without replacing it: change only the fields you pass, convert types in place while keeping ID and history, or preserve stored credentials by returning "***".
Instructions
Updates an existing monitor. Only the fields you pass change; the rest keep their stored values. Passing a different type converts the monitor in place, keeping its ID and history, and needs the new type's required fields, passed here or already stored. Type-specific fields go in typeFields: call getMonitorTypeFields for them. A credential sent back as "***" keeps its stored value. Read the current configuration with getMonitor; to only stop or restart checks use setMonitorActive.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"monitorID": "<monitorID>"
},
"name": "updateMonitor"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | URL to monitor | |
| body | No | HTTP request body | |
| name | No | Display name | |
| port | No | Port number | |
| tags | No | Tags to assign | |
| type | No | New monitor type: converts the monitor in place. Pass the new type's required fields in the same call. A group cannot be converted. | |
| active | No | Whether the monitor is active | |
| method | No | HTTP method | |
| parent | No | Parent group monitor ID — re-parents this monitor into that group. Pass null to move it to the top level. | |
| headers | No | HTTP headers as JSON string | |
| keyword | No | Keyword to search for | |
| timeout | No | Request timeout in seconds. Avoid 0: Uptime Kuma turns a stored 0 into a timeout of about 13 hours, so the monitor never reports DOWN. | |
| hostname | No | Hostname | |
| interval | No | Check interval in seconds (min: 1) | |
| jsonPath | No | JSONata expression for json-query monitors. Must resolve to a primitive. | |
| ignoreTls | No | Ignore TLS/SSL errors | |
| monitorID | Yes | The ID of the monitor to update | |
| pushToken | No | Push token — the secret in the ping URL. Changing it invalidates the existing URL and any sender still using it stops beating. | |
| maxretries | No | Max retries before marking as down | |
| typeFields | No | Type-specific fields, e.g. {"mqttTopic": "sensors/#"} for mqtt or {"bearer_token": "…"} for HTTP with auth. getMonitorTypeFields names them for a type; an unknown name is refused. getMonitor returns them at the top level. | |
| upsideDown | No | Invert status | |
| description | No | Free-text description shown on the monitor page | |
| docker_host | No | Docker host ID (required for docker type). Use listDockerHosts to find available IDs. | |
| maxredirects | No | Max HTTP redirects | |
| databaseQuery | No | Query a database monitor runs | |
| expectedValue | No | Threshold the json-query result is compared against, stored as a string. | |
| invertKeyword | No | Invert keyword match | |
| retryInterval | No | Retry interval in seconds (min: 1) | |
| radiusPassword | No | The RADIUS password (radius). Sending "***" back keeps the stored value. | |
| resendInterval | No | Resend notification every N checks while down (0 = disabled) | |
| databasePassword | No | Password for mysql monitors. Sending "***" back keeps the stored value. | |
| dns_resolve_type | No | DNS record type to query (dns and globalping) | |
| docker_container | No | Docker container name (required for docker type) | |
| jsonPathOperator | No | Comparison operator for json-query monitors. | |
| dns_resolve_server | No | DNS server to use for resolution (for dns type) | |
| expiryNotification | No | Notify before the TLS certificate expires (http, keyword, json-query, globalping) | |
| notificationIDList | No | Notification ID map | |
| accepted_statuscodes | No | Accepted HTTP status codes | |
| databaseConnectionString | No | Connection string for the database monitor types. Sending "***" back keeps the stored value. | |
| domainExpiryNotification | No | Notify before the domain registration expires. Needs Uptime Kuma 2.1 or later, and not every domain can be watched: see checkDomainExpirySupport. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| msg | No | ||
| pushURL | No | Only when the type was changed to push. The URL the sender should GET. | |
| monitorID | No | ||
| pushToken | No | Only when the type was changed to push. The token, generated if the monitor had none. | |
| authMethod | No | Only when authMethod was inferred from the credentials passed. The method that was stored. |