---
title: "Update Subscription"
method: PATCH
path: "/v1/webhooks/{endpoint_id}/subscriptions/{sub_id}"
tags: ["API v1: webhooks"]
---

# Update Subscription

`PATCH /v1/webhooks/{endpoint_id}/subscriptions/{sub_id}`

## Request

- Base URL: `https://tgmarket.io` (the document declares no server; this is the origin it was published from)
- URL: `https://tgmarket.io/v1/webhooks/{endpoint_id}/subscriptions/{sub_id}`
- Auth: none declared

## Path parameters

- `endpoint_id` string, uuid, required
- `sub_id` string, uuid, required

## Request body

- SubscriptionPatch
  - `channels` union[], nullable
    - union
      - integer
      - string
  - `keywords` string[], nullable
  - `name` string, nullable
  - `active` boolean, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/tgmarket/apis/tg-market-api.md) · [All operations](https://skmtc.dev/tgmarket/apis/tg-market-api/llms.txt) · [OpenAPI document](https://skmtc.dev/tgmarket/apis/tg-market-api/revisions/15aba68e1fef?raw)
