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

# Update a notification provider



## OpenAPI

````yaml /openapi.json patch /notification-providers/{id}
openapi: 3.0.0
info:
  title: Uptime Monitor API
  description: >-
    API documentation for the Uptime Monitor application. This API allows users
    to create and manage website monitors, perform checks, and view statistics.
  version: '1.0'
  contact: {}
servers:
  - url: https://api.justanotheruptime.com
security: []
tags:
  - name: auth
    description: Authentication endpoints
  - name: projects
    description: Project management endpoints
  - name: monitors
    description: Monitor management endpoints
  - name: checks
    description: Check-related endpoints
  - name: statistics
    description: Monitor statistics endpoints
paths:
  /notification-providers/{id}:
    patch:
      tags:
        - Notification Providers
      summary: Update a notification provider
      operationId: NotificationProviderController_update
      parameters:
        - name: id
          required: true
          in: path
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateNotificationProviderDto'
      responses:
        '200':
          description: The notification provider has been successfully updated.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotificationProvider'
        '400':
          description: Bad request.
        '403':
          description: Forbidden - Insufficient permissions.
        '404':
          description: Notification provider not found.
      security:
        - bearer: []
components:
  schemas:
    UpdateNotificationProviderDto:
      type: object
      properties:
        type:
          type: string
          enum:
            - email
            - sms
            - slack
            - webhook
            - discord
            - teams
            - telegram
            - whatsapp
            - pagerduty
          description: The type of notification provider
        name:
          type: string
          description: The name of the notification provider
        config:
          type: object
          description: The configuration for the notification provider
        isEnabled:
          type: boolean
          description: Whether the notification provider is enabled
        quietHoursStart:
          type: string
          description: Start time for quiet hours (HH:MM format)
          pattern: ^([0-1]?[0-9]|2[0-3]):[0-5][0-9]$
        quietHoursEnd:
          type: string
          description: End time for quiet hours (HH:MM format)
          pattern: ^([0-1]?[0-9]|2[0-3]):[0-5][0-9]$
        projectId:
          type: string
          description: The ID of the project this notification provider belongs to
    NotificationProvider:
      type: object
      properties: {}
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http

````