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

# Update

> Update an Event Subscription.




## OpenAPI

````yaml https://raw.githubusercontent.com/ngrok/ngrok-openapi/refs/heads/main/ngrok.yaml patch /event_subscriptions/{id}
openapi: 3.0.0
info:
  title: ngrok OpenAPI
  version: 1.0.0
servers:
  - url: https://api.ngrok.com
security:
  - authentication: []
paths:
  /event_subscriptions/{id}:
    patch:
      tags:
        - EventSubscriptions
      summary: Update
      description: |
        Update an Event Subscription.
      operationId: EventSubscriptionsUpdate
      parameters:
        - $ref: '#/components/parameters/ngrokVersion'
        - name: id
          description: |
            Unique identifier for this Event Subscription.
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EventSubscriptionUpdate'
      responses:
        '200':
          description: |
            Update an Event Subscription.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EventSubscription'
components:
  parameters:
    ngrokVersion:
      name: ngrok-version
      in: header
      required: true
      schema:
        type: integer
        default: 2
  schemas:
    EventSubscriptionUpdate:
      type: object
      properties:
        id:
          description: |
            Unique identifier for this Event Subscription.
          type: string
        metadata:
          description: >
            Arbitrary customer supplied information intended to be machine
            readable. Optional, max 4096 chars.
          type: string
        description:
          description: >
            Arbitrary customer supplied information intended to be human
            readable. Optional, max 255 chars.
          type: string
        sources:
          description: >
            Sources containing the types for which this event subscription will
            trigger
          type: array
          items:
            $ref: '#/components/schemas/EventSourceReplace'
        destination_ids:
          description: >
            A list of Event Destination IDs which should be used for this Event
            Subscription.
          type: array
          items:
            type: string
    EventSubscription:
      type: object
      properties:
        id:
          description: |
            Unique identifier for this Event Subscription.
          type: string
        uri:
          description: |
            URI of the Event Subscription API resource.
          type: string
        created_at:
          description: |
            When the Event Subscription was created (RFC 3339 format).
          type: string
        metadata:
          description: >
            Arbitrary customer supplied information intended to be machine
            readable. Optional, max 4096 chars.
          type: string
        description:
          description: >
            Arbitrary customer supplied information intended to be human
            readable. Optional, max 255 chars.
          type: string
        sources:
          description: >
            Sources containing the types for which this event subscription will
            trigger
          type: array
          items:
            $ref: '#/components/schemas/EventSource'
        destinations:
          description: |
            Destinations to which these events will be sent
          type: array
          items:
            $ref: '#/components/schemas/Ref'
    EventSourceReplace:
      type: object
      properties:
        type:
          description: |
            Type of event for which an event subscription will trigger
          type: string
    EventSource:
      type: object
      properties:
        type:
          description: |
            Type of event for which an event subscription will trigger
          type: string
        uri:
          description: |
            URI of the Event Source API resource.
          type: string
    Ref:
      type: object
      properties:
        id:
          description: |
            a resource identifier
          type: string
        uri:
          description: |
            a uri for locating a resource
          type: string
  securitySchemes:
    authentication:
      type: http
      scheme: bearer

````