ilert Notification Preferences API

The Notification Preferences API from ilert — 8 operation(s) for notification preferences.

GitHub OpenAPI
Business capability
Incident Response Management BC-4220.30

Operations 20

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /users/{user-id}/notification-preferences/alerts Get a user's alert notification preferences · Get alert notification preferences of a user #
Ask an LLM
“Which alert notification methods are set for a user?”
“Can I see how long a user wants to wait before alert notifications are sent?”
Tell an agent
Show alert notification preferences for user {user_id}.
List the alert notification methods configured for {user_id}.
POST /users/{user-id}/notification-preferences/alerts Create an alert notification preference · Create an alert notification preference #
Ask an LLM
“How do I make a user receive alert notifications by email?”
“Can I set a delay before alert notifications go out?”
Tell an agent
Create an alert notification preference for user {user_id} by {method}.
Set up alert notifications for {user_id} with a {delayMin} minute delay.
GET /users/{user-id}/notification-preferences/alerts/{id} Get one alert notification preference · Get specific notification preferences alert #
Ask an LLM
“What method and delay does one alert notification preference use?”
“Can I fetch a single alert notification preference by ID?”
Tell an agent
Show alert notification preference {id} for user {user_id}.
Get the alert notification preference {id} of {user_id}.
PUT /users/{user-id}/notification-preferences/alerts/{id} Update an alert notification preference · Update a user's alert notification preference #
Ask an LLM
“Can I change the method a user's alert notification preference uses?”
“How do I shorten the delay on an existing alert notification preference?”
Tell an agent
Change alert notification preference {id} for user {user_id} to {method}.
Set the delay on alert notification preference {id} of {user_id} to {delayMin} minutes.
DELETE /users/{user-id}/notification-preferences/alerts/{id} Delete an alert notification preference · Delete the user's specified notification preferences alert #
Ask an LLM
“How do I remove an alert notification preference?”
“Can I delete a single alert notification preference by ID?”
Tell an agent destructive · confirm first
Delete alert notification preference {id} for user {user_id}.
Remove the alert notification preference {id} of {user_id}.
GET /users/{user-id}/notification-preferences/duties Get a user's duty notification preferences · Get duty notification preferences of a user #
Ask an LLM
“Which duty notification methods are set for a user?”
“Can I see when a user wants to be notified before a duty starts?”
Tell an agent
Show duty notification preferences for user {user_id}.
List the duty notification methods configured for {user_id}.
POST /users/{user-id}/notification-preferences/duties Create a duty notification preference · Create a duty notification preference #
Ask an LLM
“How do I make a user notified by SMS before a duty starts?”
“Can I set a number of minutes before a duty when duty notifications go out?”
Tell an agent
Create a duty notification preference for user {user_id} by {method}.
Set up duty notifications for {user_id} to go out {beforeMin} minutes before the duty.
GET /users/{user-id}/notification-preferences/duties/{id} Get one duty notification preference · Get specific notification preferences duty #
Ask an LLM
“What method and before-time does one duty notification preference use?”
“Can I fetch a single duty notification preference by ID?”
Tell an agent
Show duty notification preference {id} for user {user_id}.
Get the duty notification preference {id} of {user_id}.
PUT /users/{user-id}/notification-preferences/duties/{id} Update a duty notification preference · Update a user's duty notification preference #
Ask an LLM
“Can I change the method a user's duty notification preference uses?”
“How do I change the before-time on an existing duty notification preference?”
Tell an agent
Change duty notification preference {id} for user {user_id} to {method}.
Set the before-time on duty notification preference {id} of {user_id} to {beforeMin} minutes.
DELETE /users/{user-id}/notification-preferences/duties/{id} Delete a duty notification preference · Delete the user's specified notification preferences duty #
Ask an LLM
“How do I remove a duty notification preference?”
“Can I delete a single duty notification preference by ID?”
Tell an agent destructive · confirm first
Delete duty notification preference {id} for user {user_id}.
Remove the duty notification preference {id} of {user_id}.
GET /users/{user-id}/notification-preferences/updates Get a user's update notification preferences · Get update notification preferences of a user #
Ask an LLM
“Which update notification methods are set for a user?”
“Can I see how a user wants to be notified about updates?”
Tell an agent
Show update notification preferences for user {user_id}.
List the update notification methods configured for {user_id}.
POST /users/{user-id}/notification-preferences/updates Create an update notification preference · Create an update notification preference #
Ask an LLM
“How do I make a user receive update notifications by email?”
“Can I set the update notification method for a user?”
Tell an agent
Create an update notification preference for user {user_id} by {method}.
Set up update notifications for {user_id} to go out by {method}.
GET /users/{user-id}/notification-preferences/updates/{id} Get one update notification preference · Get specific notification preferences update #
Ask an LLM
“What method does one update notification preference use?”
“Can I fetch a single update notification preference by ID?”
Tell an agent
Show update notification preference {id} for user {user_id}.
Get the update notification preference {id} of {user_id}.
PUT /users/{user-id}/notification-preferences/updates/{id} Update an update notification preference · Update a user's update notification preference #
Ask an LLM
“Can I change the method an update notification preference uses?”
“How do I update an existing update notification preference?”
Tell an agent
Change update notification preference {id} for user {user_id} to {method}.
Set the update notification method on {id} of {user_id} to {method}.
DELETE /users/{user-id}/notification-preferences/updates/{id} Delete an update notification preference · Delete the user's specified notification preferences update #
Ask an LLM
“How do I remove an update notification preference?”
“Can I delete a single update notification preference by ID?”
Tell an agent destructive · confirm first
Delete update notification preference {id} for user {user_id}.
Remove the update notification preference {id} of {user_id}.
GET /users/{user-id}/notification-preferences/subscriptions Get a user's subscription notification preferences · Get subscription notification preferences of a user #
Ask an LLM
“Which subscription notification methods are set for a user?”
“Can I see how a user wants to be notified about subscriptions?”
Tell an agent
Show subscription notification preferences for user {user_id}.
List the subscription notification methods configured for {user_id}.
POST /users/{user-id}/notification-preferences/subscriptions Create a subscription notification preference · Create a subscription notification preference #
Ask an LLM
“How do I make a user receive subscription notifications by email?”
“Can I set the subscription notification method for a user?”
Tell an agent
Create a subscription notification preference for user {user_id} by {method}.
Set up subscription notifications for {user_id} to go out by {method}.
GET /users/{user-id}/notification-preferences/subscriptions/{id} Get one subscription notification preference · Get specific notification preferences subscription #
Ask an LLM
“What method does one subscription notification preference use?”
“Can I fetch a single subscription notification preference by ID?”
Tell an agent
Show subscription notification preference {id} for user {user_id}.
Get the subscription notification preference {id} of {user_id}.
PUT /users/{user-id}/notification-preferences/subscriptions/{id} Change a user's subscription preference · Update a user's subscription notification preference #
Ask an LLM
“How do I make a user stop getting alerts on a subscription?”
“Can I change one contact method for a user's subscription?”
Tell an agent
Set subscription {id} for user {user-id} to contact {contact}.
Change user {user-id}'s subscription {id} to alert via {method}.
DELETE /users/{user-id}/notification-preferences/subscriptions/{id} Delete a subscription notification preference · Delete the user's specified notification preferences subscription #
Ask an LLM
“How do I remove a subscription notification preference?”
“Can I delete a single subscription notification preference by ID?”
Tell an agent destructive · confirm first
Delete subscription notification preference {id} for user {user_id}.
Remove the subscription notification preference {id} of {user_id}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/ilert:ilert-notification-preferences-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

ilert-notification-preferences-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: ilert REST Notification Preferences API
  description: '# Introduction

    The ilert API is a RESTful API and provides programmatic access to entities in ilert and lets you easily integrate ilert with 3rd party tools.'
  version: v2.2026.5-r.3
  x-logo:
    url: ./ilert-logo-spaced.png
    backgroundColor: '#fafafa'
    altText: ilert documentation logo
servers:
- url: /api
security:
- apiKey: []
tags:
- name: Notification Preferences
paths:
  /users/{user-id}/notification-preferences/alerts:
    get:
      tags:
      - Notification Preferences
      summary: Get alert notification preferences of a user
      parameters:
      - name: user-id
        in: path
        description: numeric user id
        required: true
        schema:
          type: string
      responses:
        '200':
          description: the response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/NotificationPreferencesAlert'
      operationId: getUsersByUserIdNotificationPreferencesAlerts
      x-operation-id-source: derived
    post:
      tags:
      - Notification Preferences
      summary: Create an alert notification preference
      parameters:
      - name: user-id
        in: path
        description: numeric user id
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/NotificationPreferencesAlertPost'
        required: true
      responses:
        '201':
          description: the response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotificationPreferencesAlert'
      x-codegen-request-body-name: alert notification preference
      operationId: postUsersByUserIdNotificationPreferencesAlerts
      x-operation-id-source: derived
  /users/{user-id}/notification-preferences/alerts/{id}:
    get:
      tags:
      - Notification Preferences
      summary: Get specific notification preferences alert
      parameters:
      - name: user-id
        in: path
        description: numeric user id
        required: true
        schema:
          type: string
      - name: id
        in: path
        description: entity ID
        required: true
        schema:
          type: number
      responses:
        '200':
          description: the response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotificationPreferencesAlert'
      operationId: getUsersByUserIdNotificationPreferencesAlertsById
      x-operation-id-source: derived
    put:
      tags:
      - Notification Preferences
      summary: Update a user's alert notification preference
      parameters:
      - name: user-id
        in: path
        description: numeric user id
        required: true
        schema:
          type: string
      - name: id
        in: path
        description: entity ID
        required: true
        schema:
          type: number
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/NotificationPreferencesAlertPost'
        required: false
      responses:
        '200':
          description: the response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotificationPreferencesAlert'
      x-codegen-request-body-name: alert notification preference
      operationId: putUsersByUserIdNotificationPreferencesAlertsById
      x-operation-id-source: derived
    delete:
      tags:
      - Notification Preferences
      summary: Delete the user's specified notification preferences alert
      parameters:
      - name: user-id
        in: path
        description: numeric user id
        required: true
        schema:
          type: string
      - name: id
        in: path
        description: entity ID
        required: true
        schema:
          type: number
      responses:
        '204':
          description: if deletion was successful
          content: {}
      operationId: deleteUsersByUserIdNotificationPreferencesAlertsById
      x-operation-id-source: derived
  /users/{user-id}/notification-preferences/duties:
    get:
      tags:
      - Notification Preferences
      summary: Get duty notification preferences of a user
      parameters:
      - name: user-id
        in: path
        description: numeric user id
        required: true
        schema:
          type: string
      responses:
        '200':
          description: the response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/NotificationPreferencesDuty'
      operationId: getUsersByUserIdNotificationPreferencesDuties
      x-operation-id-source: derived
    post:
      tags:
      - Notification Preferences
      summary: Create a duty notification preference
      parameters:
      - name: user-id
        in: path
        description: numeric user id
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/NotificationPreferencesDutyPost'
        required: true
      responses:
        '201':
          description: the response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotificationPreferencesDuty'
      x-codegen-request-body-name: duty notification preference
      operationId: postUsersByUserIdNotificationPreferencesDuties
      x-operation-id-source: derived
  /users/{user-id}/notification-preferences/duties/{id}:
    get:
      tags:
      - Notification Preferences
      summary: Get specific notification preferences duty
      parameters:
      - name: user-id
        in: path
        description: numeric user id
        required: true
        schema:
          type: string
      - name: id
        in: path
        description: entity ID
        required: true
        schema:
          type: number
      responses:
        '200':
          description: the response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotificationPreferencesDuty'
      operationId: getUsersByUserIdNotificationPreferencesDutiesById
      x-operation-id-source: derived
    put:
      tags:
      - Notification Preferences
      summary: Update a user's duty notification preference
      parameters:
      - name: user-id
        in: path
        description: numeric user id
        required: true
        schema:
          type: string
      - name: id
        in: path
        description: entity ID
        required: true
        schema:
          type: number
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/NotificationPreferencesDutyPost'
        required: false
      responses:
        '200':
          description: the response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotificationPreferencesDuty'
      x-codegen-request-body-name: duty notification preference
      operationId: putUsersByUserIdNotificationPreferencesDutiesById
      x-operation-id-source: derived
    delete:
      tags:
      - Notification Preferences
      summary: Delete the user's specified notification preferences duty
      parameters:
      - name: user-id
        in: path
        description: numeric user id
        required: true
        schema:
          type: string
      - name: id
        in: path
        description: entity ID
        required: true
        schema:
          type: number
      responses:
        '204':
          description: if deletion was successful
          content: {}
      operationId: deleteUsersByUserIdNotificationPreferencesDutiesById
      x-operation-id-source: derived
  /users/{user-id}/notification-preferences/updates:
    get:
      tags:
      - Notification Preferences
      summary: Get update notification preferences of a user
      parameters:
      - name: user-id
        in: path
        description: numeric user id
        required: true
        schema:
          type: string
      responses:
        '200':
          description: the response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/NotificationPreferencesUpdate'
      operationId: getUsersByUserIdNotificationPreferencesUpdates
      x-operation-id-source: derived
    post:
      tags:
      - Notification Preferences
      summary: Create an update notification preference
      parameters:
      - name: user-id
        in: path
        description: numeric user id
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/NotificationPreferencesUpdatePost'
        required: true
      responses:
        '201':
          description: the response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotificationPreferencesUpdate'
      x-codegen-request-body-name: update notification preference
      operationId: postUsersByUserIdNotificationPreferencesUpdates
      x-operation-id-source: derived
  /users/{user-id}/notification-preferences/updates/{id}:
    get:
      tags:
      - Notification Preferences
      summary: Get specific notification preferences update
      parameters:
      - name: user-id
        in: path
        description: numeric user id
        required: true
        schema:
          type: string
      - name: id
        in: path
        description: entity ID
        required: true
        schema:
          type: number
      responses:
        '200':
          description: the response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotificationPreferencesUpdate'
      operationId: getUsersByUserIdNotificationPreferencesUpdatesById
      x-operation-id-source: derived
    put:
      tags:
      - Notification Preferences
      summary: Update a user's update notification preference
      parameters:
      - name: user-id
        in: path
        description: numeric user id
        required: true
        schema:
          type: string
      - name: id
        in: path
        description: entity ID
        required: true
        schema:
          type: number
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/NotificationPreferencesUpdatePost'
        required: false
      responses:
        '200':
          description: the response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotificationPreferencesUpdate'
      x-codegen-request-body-name: update notification preference
      operationId: putUsersByUserIdNotificationPreferencesUpdatesById
      x-operation-id-source: derived
    delete:
      tags:
      - Notification Preferences
      summary: Delete the user's specified notification preferences update
      parameters:
      - name: user-id
        in: path
        description: numeric user id
        required: true
        schema:
          type: string
      - name: id
        in: path
        description: entity ID
        required: true
        schema:
          type: number
      responses:
        '204':
          description: if deletion was successful
          content: {}
      operationId: deleteUsersByUserIdNotificationPreferencesUpdatesById
      x-operation-id-source: derived
  /users/{user-id}/notification-preferences/subscriptions:
    get:
      tags:
      - Notification Preferences
      summary: Get subscription notification preferences of a user
      parameters:
      - name: user-id
        in: path
        description: numeric user id
        required: true
        schema:
          type: string
      responses:
        '200':
          description: the response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/NotificationPreferencesSubscription'
      operationId: getUsersByUserIdNotificationPreferencesSubscriptions
      x-operation-id-source: derived
    post:
      tags:
      - Notification Preferences
      summary: Create a subscription notification preference
      parameters:
      - name: user-id
        in: path
        description: numeric user id
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/NotificationPreferencesSubscriptionPost'
        required: true
      responses:
        '201':
          description: the response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotificationPreferencesSubscription'
      x-codegen-request-body-name: subscription notification preference
      operationId: postUsersByUserIdNotificationPreferencesSubscriptions
      x-operation-id-source: derived
  /users/{user-id}/notification-preferences/subscriptions/{id}:
    get:
      tags:
      - Notification Preferences
      summary: Get specific notification preferences subscription
      parameters:
      - name: user-id
        in: path
        description: numeric user id
        required: true
        schema:
          type: string
      - name: id
        in: path
        description: entity ID
        required: true
        schema:
          type: number
      responses:
        '200':
          description: the response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotificationPreferencesSubscription'
      operationId: getUsersByUserIdNotificationPreferencesSubscriptionsById
      x-operation-id-source: derived
    put:
      tags:
      - Notification Preferences
      summary: Update a user's subscription notification preference
      parameters:
      - name: user-id
        in: path
        description: numeric user id
        required: true
        schema:
          type: string
      - name: id
        in: path
        description: entity ID
        required: true
        schema:
          type: number
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/NotificationPreferencesSubscriptionPost'
        required: false
      responses:
        '200':
          description: the response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotificationPreferencesSubscription'
      x-codegen-request-body-name: subscription notification preference
      operationId: putUsersByUserIdNotificationPreferencesSubscriptionsById
      x-operation-id-source: derived
    delete:
      tags:
      - Notification Preferences
      summary: Delete the user's specified notification preferences subscription
      parameters:
      - name: user-id
        in: path
        description: numeric user id
        required: true
        schema:
          type: string
      - name: id
        in: path
        description: entity ID
        required: true
        schema:
          type: number
      responses:
        '204':
          description: if deletion was successful
          content: {}
      operationId: deleteUsersByUserIdNotificationPreferencesSubscriptionsById
      x-operation-id-source: derived
components:
  schemas:
    NotificationPreferencesDutyPost:
      type: object
      properties:
        beforeMin:
          $ref: '#/components/schemas/NotificationPreferencesDutyBeforeMin'
        contact:
          type: object
          oneOf:
          - $ref: '#/components/schemas/ContactPhoneNumber'
          - $ref: '#/components/schemas/ContactEmail'
        method:
          $ref: '#/components/schemas/NotificationPreferenceDutyMethod'
        type:
          $ref: '#/components/schemas/NotificationPreferencesDutyTypes'
    NotificationPreferencesUpdateType:
      type: string
      enum:
      - ALERT_ACCEPTED
      - ALERT_RESOLVED
      - ALERT_ESCALATED
    NotificationPreferencesDuty:
      type: object
      properties:
        id:
          type: integer
          format: int64
        beforeMin:
          $ref: '#/components/schemas/NotificationPreferencesDutyBeforeMin'
        contact:
          type: object
          oneOf:
          - $ref: '#/components/schemas/ContactPhoneNumber'
          - $ref: '#/components/schemas/ContactEmail'
        method:
          $ref: '#/components/schemas/NotificationPreferenceDutyMethod'
        type:
          $ref: '#/components/schemas/NotificationPreferencesDutyTypes'
    NotificationPreferenceUpdateMethod:
      type: string
      enum:
      - EMAIL
      - SMS
      - PUSH
      - WHATSAPP
      - TELEGRAM
    NotificationPreferencesUpdatePost:
      type: object
      properties:
        contact:
          type: object
          oneOf:
          - $ref: '#/components/schemas/ContactPhoneNumber'
          - $ref: '#/components/schemas/ContactEmail'
        method:
          $ref: '#/components/schemas/NotificationPreferenceUpdateMethod'
        type:
          $ref: '#/components/schemas/NotificationPreferencesUpdateType'
    NotificationPreferenceAlertMethod:
      type: string
      enum:
      - EMAIL
      - SMS
      - PUSH
      - VOICE
      - WHATSAPP
      - TELEGRAM
    NotificationPreferenceDutyMethod:
      type: string
      enum:
      - EMAIL
      - SMS
      - PUSH
      - WHATSAPP
      - TELEGRAM
    NotificationPreferencesAlertPost:
      type: object
      properties:
        method:
          $ref: '#/components/schemas/NotificationPreferenceAlertMethod'
        contact:
          type: object
          oneOf:
          - $ref: '#/components/schemas/ContactPhoneNumber'
          - $ref: '#/components/schemas/ContactEmail'
        delayMin:
          $ref: '#/components/schemas/NotificationPreferencesAlertDelayMin'
        type:
          $ref: '#/components/schemas/NotificationPreferenceAlertType'
    NotificationPreferenceAlertType:
      type: string
      enum:
      - LOW_PRIORITY
      - HIGH_PRIORITY
    ContactStatus:
      type: string
      enum:
      - OK
      - LOCKED
      - BLACKLISTED
    NotificationPreferencesDutyTypes:
      type: string
      enum:
      - ON_CALL
    NotificationPreferencesSubscription:
      type: object
      properties:
        id:
          type: integer
          format: int64
        contact:
          type: object
          oneOf:
          - $ref: '#/components/schemas/ContactPhoneNumber'
          - $ref: '#/components/schemas/ContactEmail'
        method:
          $ref: '#/components/schemas/NotificationPreferenceSubscriptionMethod'
    NotificationPreferencesAlertDelayMin:
      type: integer
    NotificationPreferenceSubscriptionMethod:
      type: string
      enum:
      - EMAIL
      - SMS
      - PUSH
    NotificationPreferencesDutyBeforeMin:
      type: integer
      enum:
      - 0
      - 15
      - 30
      - 60
      - 180
      - 360
      - 720
      - 1440
    NotificationPreferencesAlert:
      type: object
      properties:
        id:
          type: integer
          format: int64
        method:
          $ref: '#/components/schemas/NotificationPreferenceAlertMethod'
        contact:
          type: object
          oneOf:
          - $ref: '#/components/schemas/ContactPhoneNumber'
          - $ref: '#/components/schemas/ContactEmail'
        delayMin:
          $ref: '#/components/schemas/NotificationPreferencesAlertDelayMin'
        type:
          $ref: '#/components/schemas/NotificationPreferenceAlertType'
    NotificationPreferencesUpdate:
      type: object
      properties:
        id:
          type: integer
          format: int64
        contact:
          type: object
          oneOf:
          - $ref: '#/components/schemas/ContactPhoneNumber'
          - $ref: '#/components/schemas/ContactEmail'
        method:
          $ref: '#/components/schemas/NotificationPreferenceUpdateMethod'
        type:
          $ref: '#/components/schemas/NotificationPreferencesUpdateType'
    ContactEmail:
      type: object
      properties:
        id:
          type: integer
          format: int64
        target:
          type: string
        status:
          $ref: '#/components/schemas/ContactStatus'
    ContactPhoneNumber:
      type: object
      properties:
        id:
          type: integer
          format: int64
        regionCode:
          type: string
        target:
          type: string
        primary:
          type: boolean
          description: May only be enabled for a single phone number contact at a time
        status:
          $ref: '#/components/schemas/ContactStatus'
    NotificationPreferencesSubscriptionPost:
      type: object
      properties:
        contact:
          type: object
          oneOf:
          - $ref: '#/components/schemas/ContactPhoneNumber'
          - $ref: '#/components/schemas/ContactEmail'
        method:
          $ref: '#/components/schemas/NotificationPreferenceSubscriptionMethod'
  securitySchemes:
    apiKey:
      type: apiKey
      description: The Bearer API key of your user <a href='/api-docs/#section/Authentication'>more info</a>.
      name: Authorization
      in: header
x-original-swagger-version: '2.0'