Update uptime service

View as MarkdownOpen in Claude
Changes how ONE website is monitored by Uptime Monitor. Send only what changes (at least one field); answers **200** with the uptime service document, its attributes reading back under the same keys this body accepts. **Body** (JSON), every field optional: - `status` (`enabled`, `disabled`) - enables or pauses the website's monitoring; enabling runs a check right away. - `preset` (integer) - id of another Uptime Monitor global configuration to move the website to. The website keeps its current status, unlike "Assign websites to an uptime configuration", which always switches it on. - `keyword` (object): `status` (`enabled`, `disabled`), `type` (`some`, `every` - plan-gated), `keys` (array of string). A partial `keyword` keeps the fields not sent; `keyword.keys` replaces the whole list. An enabled keyword check needs at least one keyword. - `path` (string, nullable) - path checked on the website, e.g. `/status`; null checks the website root. - `redirects` (object): `status` (`enabled`, `disabled`), `max_redirects` (integer, 1 to 10), `expected_url` (string, nullable). A partial `redirects` keeps the fields not sent. `keyword` and `redirects` merge field by field over the stored section; `keyword.keys` is the only field replaced whole rather than merged. It does NOT change the configuration itself (interval, timeout) - use "Update uptime configuration". Requires a full-access token (read-only tokens answer 403). An uptime service or a configuration of another organization answers 404. Sending no field answers 422.

Authentication

AuthorizationBearer

Personal access token created in the Modular DS dashboard; read-only tokens can only call GET endpoints.

Path parameters

site_preset_uptimestringRequired

Request

This endpoint expects an object.
redirectsobjectOptional

Response

200 - Uptime service updated

dataobjectOptional
includedlist of objectsOptional
jsonapiobjectOptional

Errors

422
Unprocessable Entity Error