Delete Monitors APIedit

Deletes one or more monitors from the Synthetics app.

Requestedit

DELETE <kibana host>:<port>/api/synthetics/monitors

DELETE <kibana host>:<port>/s/<space_id>/api/synthetics/monitors

Prerequisitesedit

You must have all privileges for the Synthetics feature in the Observability section of the Kibana feature privileges.

You must have all privileges for the Synthetics feature in the Observability section of the Kibana feature privileges.

Request Bodyedit

The request body should contain an array of monitors IDs that you want to delete.

ids
(Required, array of strings) An array of monitor IDs to delete.

Here is an example of a DELETE request to delete a list of monitors by ID:

DELETE /api/synthetics/monitors
{
  "ids": [
    "monitor1-id",
    "monitor2-id"
  ]
}

Response Exampleedit

The API response includes information about the deleted monitors, where each entry in the response array contains the following attributes:

  • id (string): The unique identifier of the deleted monitor.
  • deleted (boolean): Indicates whether the monitor was successfully deleted (true if deleted, false if not).

Here’s an example response for deleting multiple monitors:

[
  {
    "id": "monitor1-id",
    "deleted": true
  },
  {
    "id": "monitor2-id",
    "deleted": true
  }
]