---
title: "Update a webhook subscription"
method: POST
path: "/api/service/webhook-subscription/update"
tags: ["Webhook-Subscription"]
---

# Update a webhook subscription

`POST /api/service/webhook-subscription/update`

Updates the url or subcribed to events for a webhook subscription. This can be used via the app or via the API by providing an API key.

## Headers

- `Idempotency-Key` string

## Request body

- UpdateRequestDto
  - `id` unknown, required
  - `url` string — The new endpoint where webhook events are sent
  - `events` string[] — The new events to subscribe the url to

## Response `200`

Returns the updated webhook subscription.

- UpdateResponseDto
  - `id` unknown, required
  - `merchant` unknown, required
  - `merchantApp` unknown, required
  - `url` string, required
  - `events` string[], required
  - `createdAt` unknown, required
  - `updatedAt` unknown, required

---

[API](https://skmtc.net/augustus/apis/ivy-api.md) · [All operations](https://skmtc.net/augustus/apis/ivy-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/augustus/ivy-api/revisions/c3055fc06ca3/schema)
