Bulk Delete Monitors

DELETE /api/0/organizations/{organization_id_or_slug}/detectors/

Bulk delete Monitors for a given organization

Path Parameters

organization_id_or_slug (string)
REQUIRED

The ID or slug of the organization the resource belongs to.

Query Parameters:

project (array(integer))

The IDs of projects to filter by. -1 means all available projects. For example, the following are valid parameters:

  • /?project=1234&project=56789
  • /?project=-1
query (string)

An optional search query for filtering monitors.

sortBy (string)

The property to sort results by. If not specified, the results are sorted by id.

Available fields are:

  • name
  • id
  • type
  • connectedWorkflows
  • latestGroup
  • openIssues

Prefix with - to sort in descending order.

id (array(integer))

The ID of the monitor you'd like to query.

Scopes

<auth_token> requires one of the following scopes:
  • alerts:write
  • org:admin
  • org:read
  • org:write
Copied
curl https://sentry.io/api/0/organizations/{organization_id_or_slug}/detectors/ \
 -H 'Authorization: Bearer <auth_token>' \
 -X DELETE
RESPONSE
Copied
Success.
Was this helpful?