---
title: "Updates a subscription to the provided list of events"
method: PUT
path: "/WebhookSubscription/{subscriptionId}"
tags: ["WebhookSubscription"]
---

# Updates a subscription to the provided list of events

`PUT /WebhookSubscription/{subscriptionId}`

## Request

- Base URL: `https://partners.staging-youlendapi.com/notification`
- URL: `https://partners.staging-youlendapi.com/notification/WebhookSubscription/{subscriptionId}`
- Auth: OAuth 2
  - Client credentials
  - Token URL: `https://youlend-stag.eu.auth0.com/oauth/token`

## Path parameters

- `subscriptionId` string, uuid, required

## Headers

- `api-version` string

## Request body

- UpdateWebhookSubscriptionModel: A model representing the webhook subscription for list of events
  - `eventCodes` string[], required: Gets or sets the Events Code Numbers

## Response `200`

ActionResult

## Other responses

- `400`: Something went wrong!
- `401`: Unauthorized request

---

[API](https://skmtc.dev/youlend/apis/youlend-third-party-notification-api.md) - [All operations](https://skmtc.dev/youlend/apis/youlend-third-party-notification-api/llms.txt) - [OpenAPI document](https://skmtc.dev/youlend/apis/youlend-third-party-notification-api/revisions/1320b3908a39?raw)
