Delete an uptime monitor
DELETE
/v1/sites/{id}/uptime/monitors/{monitorId}
const url = 'https://api.overwatch.weareheavy.dev/v1/sites/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/uptime/monitors/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = {method: 'DELETE', headers: {'x-api-key': '<x-api-key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://api.overwatch.weareheavy.dev/v1/sites/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/uptime/monitors/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \ --header 'x-api-key: <x-api-key>'Delete a monitor. Probing stops immediately and its events and rollups cascade away. Requires an owner/admin session or an API key.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”id
required
string format: uuid
The site’s UUID.
monitorId
required
string format: uuid
The uptime monitor’s UUID.
Responses
Section titled “ Responses ”The monitor was deleted.
Media typeapplication/json
object
deleted
required
boolean
Example
{ "deleted": true}Missing or invalid credentials.
Media typeapplication/json
object
error
required
A human-readable error message.
string
Example
{ "error": "invalid api key"}The caller’s role or key scope does not allow this action.
Media typeapplication/json
object
error
required
A human-readable error message.
string
Example
{ "error": "only owners and admins can edit site settings"}The site or monitor was not found.
Media typeapplication/json
object
error
required
A human-readable error message.
string
Example
{ "error": "monitor not found"}