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

# Update an email alert



## OpenAPI

````yaml /api-reference/openapi.json patch /email-alerts/{id}
openapi: 3.0.0
info:
  title: asobeast API
  description: Self hosted ASO toolkit API
  version: 0.4.0
  contact: {}
servers:
  - url: http://localhost:3000/api/backend
    description: Web origin proxy
  - url: http://localhost:4000
    description: Direct API
security:
  - personalApiToken: []
tags: []
paths:
  /email-alerts/{id}:
    patch:
      tags:
        - email-alerts
      summary: Update an email alert
      operationId: EmailAlertsController_update
      parameters:
        - name: id
          required: true
          in: path
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateEmailAlertDto'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
components:
  schemas:
    UpdateEmailAlertDto:
      type: object
      properties:
        email:
          type: string
          format: email
        events:
          type: array
          minItems: 1
          items:
            type: string
            enum:
              - metadata.changed
              - rank.dropped
              - rank.improved
              - review.negative
              - digest.weekly
              - serp.entrant
              - action.opened
        active:
          type: boolean
  securitySchemes:
    personalApiToken:
      scheme: bearer
      bearerFormat: asob
      type: http

````