---
title: "Editar un webhook"
method: PUT
path: "/webhooks/{webhookId}"
tags: ["Webhooks"]
---

# Editar un webhook

`PUT /webhooks/{webhookId}`

## Request

- Base URL: `https://www.facture.ar/api`
- URL: `https://www.facture.ar/api/webhooks/{webhookId}`
- Auth: API key in header `x-api-key`

Cambia la URL, los eventos, los headers o lo pausa (isActive: false). Solo se cambian los campos que mandás.

## Path parameters

- `webhookId` string, required

## Request body

- object
  - `url` string, uri
  - `events` WebhookEvent[]
  - `headers` object, nullable
  - `isActive` boolean

## Response `200`

Webhook actualizado

- Webhook
  - `id` string
  - `userId` string
  - `url` string, uri
  - `headers` object, nullable: Headers propios que se agregan a cada envío
  - `events` WebhookEvent[]
  - `isActive` boolean
  - `createdAt` string, date-time
  - `updatedAt` string, date-time

## Other responses

- `400`: Datos inválidos
- `404`: Webhook no encontrado

---

[API](https://skmtc.dev/facture/apis/facturear-api.md) · [All operations](https://skmtc.dev/facture/apis/facturear-api/llms.txt) · [OpenAPI document](https://skmtc.dev/facture/apis/facturear-api/revisions/b572c5908978?raw)
