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

# Change a destination's name, URL, events, or enabled state



## OpenAPI

````yaml /openapi.json patch /api/v1/notifications/subscriptions/{id}
openapi: 3.1.0
info:
  description: >-
    Durable, authenticated control-plane operations. Mutation responses may
    outlive the requesting client.
  title: InferCrane Control API
  version: 1.0.0
servers:
  - description: Local InferCrane API and gateway
    url: http://127.0.0.1:18000
security: []
tags:
  - name: Admission
  - name: Adoption
  - name: Agents
  - name: Alerts
  - name: Async inference
  - name: Audit
  - name: Autopilot
  - name: Benchmarks
  - name: Billing
  - name: Billing administration
  - name: Burst Guard
  - name: Capacity intelligence
  - name: Compute
  - name: Context Passport
  - name: Deployments
  - name: Diagnostics
  - name: Endpoints
  - name: External capacity
  - name: FinOps
  - name: Identity
  - name: Inference
  - name: Inference Lab
  - name: Inference decisions
  - name: Inference optimization
  - name: Infrastructure
  - name: Marketplace administration
  - name: Model API administration
  - name: Model APIs
  - name: Model artifacts
  - name: Model catalog
  - name: Monitoring
  - name: Notifications
  - name: Operations
  - name: Planning
  - name: Providers
  - name: Recipes
  - name: Release Guard
  - name: Release evidence
  - name: Replay
  - name: Revisions
  - name: Routing
  - name: Sandboxes
  - name: Scaling
  - name: Secrets
  - name: System
  - name: Targets
  - name: Training lineage
paths:
  /api/v1/notifications/subscriptions/{id}:
    patch:
      tags:
        - Notifications
      summary: Change a destination's name, URL, events, or enabled state
      operationId: updateNotificationSubscription
      parameters:
        - in: path
          name: id
          required: true
          schema:
            minLength: 1
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/NotificationSubscriptionUpdate'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotificationSubscriptionEnvelope'
          description: Success
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Typed API error
      security:
        - bearerAuth: []
components:
  schemas:
    NotificationSubscriptionUpdate:
      additionalProperties: false
      properties:
        enabled:
          type: boolean
        events:
          items:
            enum:
              - approval_needed
              - approval_expiring
              - quality_evidence_needed
              - decided
              - failed
              - rolled_out
            type: string
          minItems: 1
          type: array
        name:
          description: Label shown in the dashboard. Defaults to the URL host.
          maxLength: 64
          type: string
        url:
          description: >-
            Absolute HTTPS URL. A Slack destination must be an incoming webhook
            URL on https://hooks.slack.com/services/. Sealed at rest and never
            returned.
          format: uri
          maxLength: 2048
          type: string
          writeOnly: true
      type: object
    NotificationSubscriptionEnvelope:
      additionalProperties: false
      properties:
        subscription:
          $ref: '#/components/schemas/NotificationSubscription'
      required:
        - subscription
      type: object
    ErrorEnvelope:
      properties:
        error:
          $ref: '#/components/schemas/Error'
      required:
        - error
      type: object
    NotificationSubscription:
      additionalProperties: false
      properties:
        created_at:
          format: date-time
          type: string
        created_by:
          type: string
        destination:
          enum:
            - webhook
            - slack
          type: string
        enabled:
          type: boolean
        events:
          items:
            enum:
              - approval_needed
              - approval_expiring
              - quality_evidence_needed
              - decided
              - failed
              - rolled_out
            type: string
          minItems: 1
          type: array
        id:
          type: string
        last_delivery:
          oneOf:
            - $ref: '#/components/schemas/NotificationDelivery'
            - type: 'null'
        name:
          type: string
        updated_at:
          format: date-time
          type: string
        url_hint:
          description: >-
            Scheme, host, and the last characters of the path. The full URL is
            never returned.
          type: string
      required:
        - id
        - name
        - destination
        - url_hint
        - events
        - enabled
        - created_by
        - created_at
        - updated_at
        - last_delivery
      type: object
    Error:
      properties:
        category:
          type: string
        code:
          type: string
        message:
          type: string
        remediation:
          type: string
        request_id:
          type: string
        retryable:
          type: boolean
      required:
        - code
        - message
      type: object
    NotificationDelivery:
      additionalProperties: false
      properties:
        attempts:
          minimum: 0
          type: integer
        delivered_at:
          format: date-time
          type:
            - string
            - 'null'
        error_code:
          description: >-
            network_error, http_<status>, destination_rejected,
            destination_disabled, or destination_unreadable.
          type:
            - string
            - 'null'
        event:
          description: Event name, or test for a test event.
          type: string
        occurred_at:
          format: date-time
          type: string
        response_status:
          description: HTTP status of the last attempt; null when no response arrived.
          type:
            - integer
            - 'null'
        status:
          enum:
            - pending
            - delivered
            - failed
          type: string
        updated_at:
          format: date-time
          type: string
      required:
        - event
        - status
        - attempts
        - response_status
        - error_code
        - occurred_at
        - updated_at
        - delivered_at
      type: object
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.