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

# Update notification settings

> **Auth:** signed-in organization admin only. Organization API keys are rejected with `403`.

PATCH semantics: omit a field to keep it, send `null` to clear it. Slack webhooks must be `https://hooks.slack.com/...` URLs.



## OpenAPI

````yaml https://cp.xenovia.io/openapi.json patch /api/v1/notification-settings
openapi: 3.1.0
info:
  title: Xenovia Control Plane API
  version: 1.0.0
  description: >-
    Management API for proxies, providers, policies, telemetry, alerts and
    organization settings.
servers:
  - url: https://cp.xenovia.io
    description: Production
security:
  - BearerAuth: []
paths:
  /api/v1/notification-settings:
    patch:
      tags:
        - alerts
      summary: Update notification settings
      description: >-
        **Auth:** signed-in organization admin only. Organization API keys are
        rejected with `403`.


        PATCH semantics: omit a field to keep it, send `null` to clear it. Slack
        webhooks must be `https://hooks.slack.com/...` URLs.
      operationId: update_notification_settings_route_api_v1_notification_settings_patch
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OrgNotificationSettingsUpdate'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrgNotificationSettingsRead'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    OrgNotificationSettingsUpdate:
      properties:
        slack_webhook_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Slack Webhook Url
        email_recipients:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Email Recipients
      type: object
      title: OrgNotificationSettingsUpdate
    OrgNotificationSettingsRead:
      properties:
        org_id:
          type: string
          format: uuid
          title: Org Id
        slack_webhook_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Slack Webhook Url
        slack_webhook_configured:
          type: boolean
          title: Slack Webhook Configured
          default: false
        email_recipients:
          items:
            type: string
          type: array
          title: Email Recipients
        updated_at:
          type: string
          format: date-time
          title: Updated At
      type: object
      required:
        - org_id
        - slack_webhook_url
        - email_recipients
        - updated_at
      title: OrgNotificationSettingsRead
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: >-
        Bearer token: an organization API key (`ak_…`) created under Settings →
        API Keys, or a dashboard user session token. Proxy keys (`xe_…`) are not
        accepted here. Endpoints marked as user-only in their description reject
        organization keys with `403`.

````