---
title: "Update a subscription"
method: PATCH
path: "/api/v1/hooks/subscriptions/{subscription_id}/"
tags: ["webhooks"]
---

# Update a subscription

`PATCH /api/v1/hooks/subscriptions/{subscription_id}/`

This allows you to update a subscription. For example you can temporarily disable or enable a subscription if you wish.

## Path parameters

- `subscription_id` string, required

## Headers

- `Authorization` string, required

## Request body

- SubscriptionUpdateDetail
  - `event_type` string — The name of the event type associated to the subscription.
  - `target_url` string — The URL that the subscription will notify when your event type is triggered.
  - `is_enabled` boolean — Whether the subscription is enabled or not.

## Response `200`

Updated

- SubscriptionDetail
  - `id` string — The ID of the subscription.
  - `event_type` string, required — The name of the event type associated to the subscription.
  - `target_url` string, required — The URL that the subscription will notify when your event type is triggered.
  - `is_enabled` boolean — Whether the subscription is enabled or not.
  - `workspace_id` string, required — The ID of the workspace we will create the subscription in.

## Other responses

- `400` — Error

---

[API](https://skmtc.net/prolific/apis/api-reference.md) · [All operations](https://skmtc.net/prolific/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/prolific/api-reference/versions/dc6f073a9827/schema)
