---
title: "Try close availability alert"
method: POST
path: "/api/operator-alerts/close-availability-reminder"
tags: ["operator-alerts"]
---

# Try close availability alert

`POST /api/operator-alerts/close-availability-reminder`

Attempts to close open `aggiungi_disponibilita` alert using backend rules. Returns closed=true only when requirements are satisfied.

## Request body

- CloseAvailabilityAlertRequest — Payload for attempting to close availability alert after slot updates.
  - `operator_id` string, nullable — Operator UUID (required for admin)
  - `alert_id` string, nullable — Specific alert UUID to close; if omitted, service uses latest open availability alert for operator

## Response `200`

Successful Response

- CloseAvailabilityAlertResponse — Outcome of availability-alert close attempt.
  - `closed` boolean, required — True when alert was closed
  - `message` string, required — Human-readable outcome
  - `alert` OperatorAlertResponse — Single operator alert row.
    - `id` string, uuid, nullable — Alert UUID
    - `operator_id` string, uuid, nullable — Operator UUID
    - `created_at` string, date-time, nullable — Creation timestamp
    - `updated_at` string, date-time, nullable — Last update timestamp
    - `status` string, nullable — Alert status
    - `type` string, nullable — Alert type
    - `title` string, nullable — Alert title
    - `description` string, nullable — Alert description
    - `metadata` union — Alert metadata JSON
      - object
      - unknown[]
        - unknown
    - `closed_at` string, date-time, nullable — Close timestamp
    - `duration_hours` integer, nullable — Alert duration in hours
    - `is_blocking` boolean — Whether this alert can block portal access once its grace period elapses
    - `is_currently_blocking` boolean, required — Whether this alert is blocking access right now (grace period considered)

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/corabea/apis/corabea-api.md) · [All operations](https://skmtc.dev/corabea/apis/corabea-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/corabea/corabea-api/revisions/13c1bce1bdc4/schema)
