---
title: "Update a webhook endpoint"
method: PUT
path: "/webhook_endpoints/{lago_id}"
tags: ["webhook_endpoints"]
---

# Update a webhook endpoint

`PUT /webhook_endpoints/{lago_id}`

This endpoint is used to update an existing webhook endpoint.

## Request body

- WebhookEndpointUpdateInput
  - `webhook_endpoint` object
    - `webhook_url` string, required — The URL of the webhook endpoint.
    - `signature_algo` 'jwt' | 'hmac' | 'null', nullable — The signature used for the webhook. If no value is passed,
    - `name` string, nullable — The name of the webhook.
    - `event_types` string[], nullable — A list of event types that will trigger the webhook. Passing null means that all event types will be sent.

## Response `200`

Webhook Endpoint updated

- WebhookEndpoint
  - `webhook_endpoint` WebhookEndpointObject, required
    - `lago_id` string, uuid, required — Unique identifier assigned to the wallet within the Lago application. This ID is exclusively created by Lago and serves as a unique identifier for the webhook endpoint's record within the Lago system.
    - `lago_organization_id` string, uuid, required — Unique identifier assigned to the organization attached to the webhook endpoint within the Lago application. This ID is exclusively created by Lago and serves as a unique identifier for the organization's record within the Lago system.
    - `webhook_url` string, required — The URL of the webhook endpoint.
    - `signature_algo` 'jwt' | 'hmac' — The signature algo for the webhook.
    - `name` string, nullable — The name of the webhook.
    - `event_types` string[], nullable — A list of event types that will trigger the webhook. Passing null means that all event types will be sent.
    - `created_at` string, date-time, required — The date of the webhook endpoint creation, represented in ISO 8601 datetime format and expressed in Coordinated Universal Time (UTC).

## Other responses

- `400` — Bad Request error
- `401` — Unauthorized error
- `404` — Not Found error
- `422` — Unprocessable entity error

---

[API](https://skmtc.dev/getlago/apis/lago-api-documentation.md) · [All operations](https://skmtc.dev/getlago/apis/lago-api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/getlago/lago-api-documentation/revisions/6e969ef3bb45/schema)
