---
title: "Update"
method: PATCH
path: "/event_subscriptions/{id}"
tags: ["EventSubscriptions"]
---

# Update

`PATCH /event_subscriptions/{id}`

Update an Event Subscription.

## Path parameters

- `id` string, required

## Headers

- `ngrok-version` integer, required

## Request body

- EventSubscriptionUpdate
  - `id` string — Unique identifier for this Event Subscription.
  - `metadata` string — Arbitrary customer supplied information intended to be machine readable. Optional, max 4096 chars.
  - `description` string — Arbitrary customer supplied information intended to be human readable. Optional, max 255 chars.
  - `sources` EventSourceReplace[] — Sources containing the types for which this event subscription will trigger
    - `type` string — Type of event for which an event subscription will trigger
  - `destination_ids` string[] — A list of Event Destination IDs which should be used for this Event Subscription.

## Response `200`

Update an Event Subscription.

- EventSubscription
  - `id` string — Unique identifier for this Event Subscription.
  - `uri` string — URI of the Event Subscription API resource.
  - `created_at` string — When the Event Subscription was created (RFC 3339 format).
  - `metadata` string — Arbitrary customer supplied information intended to be machine readable. Optional, max 4096 chars.
  - `description` string — Arbitrary customer supplied information intended to be human readable. Optional, max 255 chars.
  - `sources` EventSource[] — Sources containing the types for which this event subscription will trigger
    - `type` string — Type of event for which an event subscription will trigger
    - `uri` string — URI of the Event Source API resource.
  - `destinations` Ref[] — Destinations to which these events will be sent
    - `id` string — a resource identifier
    - `uri` string — a uri for locating a resource

---

[API](https://skmtc.net/ngrok/apis/ngrok-openapi.md) · [All operations](https://skmtc.net/ngrok/apis/ngrok-openapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ngrok/ngrok-openapi/versions/1994bbb04714/schema)
