---
title: "Update a webhook"
method: POST
path: "/webhook/update"
tags: ["Webhooks"]
---

# Update a webhook

`POST /webhook/update`

## Request

- Base URL: `https://apisign.io/api`
- URL: `https://apisign.io/api/webhook/update`
- Auth: API key in header `x-api-key`

Update a webhook. Only the properties sent are changed. Setting `status` to `active` resets the failure count.

## Request body

- UpdateWebhookRequest
  - `id` string, required
  - `name` string
  - `url` string, uri
  - `events` WebhookEventType[]
  - `headers` object
  - `status` 'active' | 'inactive'

## Response `200`

Webhook updated

- object
  - `webhook` object
    - `id` string
    - `name` string
    - `url` string
    - `events` WebhookEventType[]
    - `status` 'active' | 'inactive' | 'failed'
    - `headers` object
    - `updatedAt` string, date-time
  - `message` string

## Other responses

- `400`: Invalid request, or the action is not allowed in the resource's current state
- `401`: Missing, invalid, expired or deleted API key. Body: `{ "error": "Unauthorized" }`
- `404`: Resource not found in this organization
- `500`: Internal server error (also returned for a request body that is not valid JSON)

---

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