The Delete Monitor endpoint permanently removes a monitor from OpsMind by its numeric ID. Before deletion, the endpoint verifies that the monitor exists and that the provided ID is a valid integer — rejecting the request early if either check fails. Because deletion is irreversible, take care to confirm the correct ID before calling this endpoint in production environments.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/LENINMORENO13/OpsMind/llms.txt
Use this file to discover all available pages before exploring further.
Endpoint
All requests must include a valid JWT in the
Authorization header. The
id path parameter must be a valid integer — non-numeric values are
rejected with a 400 before any database query is executed.Request
Headers
| Header | Value | Required |
|---|---|---|
Authorization | Bearer <token> | ✅ Yes |
Content-Type | application/json | Optional |
Path Parameters
The numeric ID of the monitor to delete. Must parse as a valid integer.
Non-numeric values (e.g.
"abc") are rejected immediately with
400 Invalid ID format before any database query is made.Curl Example
Response
200 — Success
Returns a JSON envelope with the deleted Monitor object insidedata. This snapshot reflects the monitor’s final state at the moment of deletion.
The returned object is a snapshot of the monitor as it existed just before
deletion. All cascaded child records (
Log, AIInsight) are also deleted
at the database level but are not included in this response.Error Responses
400 — Invalid ID Format
Returned when the:id path parameter cannot be parsed as an integer. No database query is executed.
404 — Monitor Not Found
Returned when no monitor with the provided ID exists in the database. OpsMind explicitly checks for existence before attempting deletion.401 — Unauthorized
Returned when theAuthorization header is missing, malformed, or the token has expired.