> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vultlocal.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Resolve Alert

> Update the status of a compliance alert

<Info>
  Update status to investigate or close an alert. Requires compliance officer role.
</Info>

## Request

<ParamField header="Authorization" type="string" required>
  `Bearer olive_live_xxx`
</ParamField>

### Path Parameters

<ParamField path="id" type="integer" required>
  Alert ID
</ParamField>

### Body Parameters

<ParamField body="status" type="string" required>
  New status: `investigating`, `resolved`, `false_positive`
</ParamField>

<ParamField body="resolution_notes" type="string">
  Notes explaining the decision
</ParamField>

<ParamField body="resolved_by" type="string">
  Officer Name/ID
</ParamField>

***

## Response

<ResponseField name="success" type="boolean">
  Update status
</ResponseField>

***

## Examples

<RequestExample>
  ```bash cURL theme={null}
  curl -X PUT "https://demo.api.vultlocal.com/api/v1/compliance/alerts/101" \
    -H "Authorization: Bearer olive_live_xxx" \
    -H "Content-Type: application/json" \
    -d '{
      "status": "resolved",
      "resolution_notes": "Customer identity verified via video call",
      "resolved_by": "officer_jane"
    }'
  ```
</RequestExample>

<ResponseExample>
  ```json 200 Success theme={null}
  {
    "success": true,
    "message": "Alert updated successfully"
  }
  ```
</ResponseExample>


## OpenAPI

````yaml olive-openapi.json PUT /compliance/alerts/{id}
openapi: 3.0.0
info:
  description: >-
    API Gateway for OLIVE NFC Card Payment System - Comprehensive payment, card
    management, agent operations, and admin authentication. All /api/v1 routes
    require authentication using either API Key or JWT token.
  title: OLIVE NFC Card Payment API
  termsOfService: http://swagger.io/terms/
  contact:
    name: API Support
    email: support@olive.sl
  license:
    name: Apache 2.0
    url: http://www.apache.org/licenses/LICENSE-2.0.html
  version: 1.0.0
servers:
  - url: https://olive-gateway-a6ba.onrender.com/api/v1
security: []
paths:
  /compliance/alerts/{id}:
    put:
      tags:
        - Compliance Alerts
      summary: Update compliance alert status
      description: Update the status of a compliance alert
      parameters:
        - description: Alert ID
          name: id
          in: path
          required: true
          schema:
            type: integer
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/handler.UpdateComplianceAlertRequest'
        description: Updated alert details
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
      security:
        - ApiKeyAuth: []
components:
  schemas:
    handler.UpdateComplianceAlertRequest:
      type: object
      required:
        - status
      properties:
        status:
          type: string
          enum:
            - open
            - investigating
            - resolved
            - false_positive
  securitySchemes:
    ApiKeyAuth:
      description: >-
        API Key for third-party integrations (WhatsApp, Smart PAY, VULT).
        Format: 'Bearer olive_live_xxxxxxxxxxxxx'
      type: apiKey
      name: Authorization
      in: header

````