DNS Monitors: Delete
This documentation entry provides a straightforward guide for developers on how to delete an existing DNS monitor using the API, including the necessary headers and the expected behavior of the...
Endpoint
DELETE /api/dns-monitors/{dns_monitor_id}
/api/dns-monitors/{dns_monitor_id}Delete an existing DNS monitor by its unique identifier.
Request
HTTP Request
DELETE https://uptimekeep.com/api/dns-monitors/{dns_monitor_id}Replace {dns_monitor_id} with the ID of the DNS monitor you wish to delete.
Headers
Authorization
String
Bearer token for API authentication.
Example of a request:
curl --request DELETE \
--url 'https://uptimekeep.com/api/dns-monitors/{dns_monitor_id}' \
--header 'Authorization: Bearer {api_key}'Response
A successful request will result in the deletion of the specified DNS monitor. Typically, a 204 No Content status code is returned, indicating that the operation was successful and no content is returned in the response body.
Errors
If the request fails, the API will return an error message with an appropriate HTTP status code, such as 404 Not Found if the DNS monitor ID does not exist.
Last updated