---
title: "Editar Webhook Endpoint"
method: PUT
path: "/webhook_endpoints/{id}"
---

# Editar Webhook Endpoint

`PUT /webhook_endpoints/{id}`

## Path parameters

- `id` string, required

## Request body

- object
  - `enabled_events` string[], required — Lista de eventos a la que se suscribe este Webhook Endpoint.
  - `url` string, required — URL de tu endpoint, al cual se le notificarán los eventos mediante requests POST.
  - `status` string — Estado del Webhook Endpoint. Si es "enabled", enviará notificaciones de los eventos suscritos. En caso contrario definir como "disabled".
  - `custom_headers` string, json — Diccionario con los headers que se enviarán en los webhooks de este Webhook Endpoint. Por ejemplo: {"custom-header-1": "custom_value_1", "custom-header-2": "custom_value_1"}

## Response `200`

200

- object
  - `id` string
  - `secret` string
  - `enabled_events` string[]
  - `url` string
  - `status` string

## Other responses

- `400` — 400
- `404` — 404
- `422` — 422

---

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