---
title: "Admin Execute"
method: POST
path: "/api/v1/alerts/admin/rules/{rule_id}/execute"
tags: ["ALERTS_V1"]
---

# Admin Execute

`POST /api/v1/alerts/admin/rules/{rule_id}/execute`

Execute any alert/report rule on demand (admin only).

Restricted to the service user (email matching SERVICE_USER_EMAIL).
Bypasses schedule and active/inactive status checks.
Delegates to the Celery task for actual execution.

Requires a `reason` (logged for audit) and accepts an optional
`reference_time` to evaluate as if "now" were a different timestamp.

## Path parameters

- `rule_id` integer, required

## Request body

- AdminExecuteRequest — Request body for admin on-demand rule execution.
  - `reason` string, required — Why this manual execution is needed (logged for audit).
  - `reference_time` string, date-time, nullable — Evaluate as if 'now' were this timestamp (ISO-8601). Defaults to UTC now.

## Response `202`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/myaltimate/apis/fastapi.md) · [All operations](https://skmtc.net/myaltimate/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/myaltimate/fastapi/versions/aab3fe5c9f05/schema)
