---
title: "Edit Subscription"
method: PUT
path: "/webhooks/subscriptions/{subscription_id}"
tags: ["Webhooks"]
---

# Edit Subscription

`PUT /webhooks/subscriptions/{subscription_id}`

## Path parameters

- `subscription_id` string, uuid, required

## Request body

- WebhookSubscriptionEditRequest
  - `subscription` WebhookSubscriptionEdit, required
    - `flags` WebhookSubscriptionFlags
      - `is_active` boolean
    - `tags` object, nullable
    - `meta` object, nullable
    - `name` string, nullable
    - `description` string, nullable
    - `created_at` string, date-time, nullable
    - `updated_at` string, date-time, nullable
    - `deleted_at` string, date-time, nullable
    - `created_by_id` string, uuid, nullable
    - `updated_by_id` string, uuid, nullable
    - `deleted_by_id` string, uuid, nullable
    - `id` string, uuid, nullable
    - `data` WebhookSubscriptionData, required
      - `url` string, uri, required
      - `headers` object, nullable
      - `payload_fields` object, nullable
      - `auth_mode` 'signature' | 'authorization', nullable
      - `event_types` WebhookEventType[], nullable
    - `secret` string, nullable

## Response `200`

Successful Response

- WebhookSubscriptionResponse
  - `count` integer
  - `subscription` WebhookSubscription
    - `flags` WebhookSubscriptionFlags
      - `is_active` boolean
    - `tags` object, nullable
    - `meta` object, nullable
    - `name` string, nullable
    - `description` string, nullable
    - `created_at` string, date-time, nullable
    - `updated_at` string, date-time, nullable
    - `deleted_at` string, date-time, nullable
    - `created_by_id` string, uuid, nullable
    - `updated_by_id` string, uuid, nullable
    - `deleted_by_id` string, uuid, nullable
    - `id` string, uuid, nullable
    - `data` WebhookSubscriptionData, required
      - `url` string, uri, required
      - `headers` object, nullable
      - `payload_fields` object, nullable
      - `auth_mode` 'signature' | 'authorization', nullable
      - `event_types` WebhookEventType[], nullable
    - `secret_id` string, uuid, nullable
    - `secret` string, nullable

## Other responses

- `422` — Validation Error

## Changes

- **2026-07-25** `5a14788d939f` — 3 breaking, 3 info
  - removed `subschema #1, subschema #2` from the `subscription/flags` request property `anyOf` list
  - the `subscription/flags` request property type/format changed from ``/`` to `object`/``
  - the `subscription/anyOf[subschema #1: WebhookSubscription]/flags` response's property type/format changed from ``/`` to `object`/`` for status `200`
  - added the new optional request property `subscription/flags/is_active`
  - …2 more
- **2026-06-01** `b2f21936417e` — 10 breaking, 5 warning, 15 info
  - removed the enum value `applications.revisions.committed` of the request property `subscription/data/event_types/anyOf[subschema #1]/items/`
  - removed the enum value `applications.revisions.fetched` of the request property `subscription/data/event_types/anyOf[subschema #1]/items/`
  - removed the enum value `applications.revisions.logged` of the request property `subscription/data/event_types/anyOf[subschema #1]/items/`
  - removed the enum value `applications.revisions.queried` of the request property `subscription/data/event_types/anyOf[subschema #1]/items/`
  - …26 more
- …earlier changes not shown

[Full history](https://skmtc.dev/agenta-ai/apis/agenta-api/changes/webhooks/subscriptions/:subscription_id/put.md)

---

[API](https://skmtc.dev/agenta-ai/apis/agenta-api.md) · [All operations](https://skmtc.dev/agenta-ai/apis/agenta-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/agenta-ai/agenta-api/revisions/48ced00d9a1c/schema)
