---
title: "Update Webhook"
method: POST
path: "/print-mail/v1/webhooks/{id}"
tags: ["Webhooks"]
---

# Update Webhook

`POST /print-mail/v1/webhooks/{id}`

Update a Webhook by ID.

## Path parameters

- `id` string, required

## Request body

- WebhookUpdate
  - `description` string — An optional string describing this resource. Will be visible in the API and the dashboard.
  - `metadata` object — See the section on Metadata.
  - `url` string, uri — An HTTPS URL that PostGrid can invoke for webhook deliveries.
  - `enabledEvents` WebhookEventType[] — The list of event types this webhook listens for.
  - `payloadFormat` 'jwt' | 'json' — The format in which a Webhook's event payload is delivered.
  - `enabled` boolean — Whether this webhook is enabled. Disabled webhooks are not triggered.
  - `secret` string — A webhook signing secret with at least 20 non-whitespace characters.

## Response `200`

The updated Webhook.

- Webhook
  - `id` string, required — A unique ID prefixed with webhook_
  - `description` string — An optional string describing this resource. Will be visible in the API and the dashboard.
  - `metadata` object — See the section on Metadata.
  - `live` boolean, required — `true` if this is a live mode resource else `false`.
  - `createdAt` string, date-time, required — The UTC time at which this resource was created.
  - `updatedAt` string, date-time, required — The UTC time at which this resource was last updated.

## Other responses

- `400` — The updated Webhook.
- `401` — The updated Webhook.
- `404` — The updated Webhook.
- `422` — The updated Webhook.
- `429` — The updated Webhook.
- `500` — The updated Webhook.

---

[API](https://skmtc.net/postgrid/apis/postgrid-address-verification-api.md) · [All operations](https://skmtc.net/postgrid/apis/postgrid-address-verification-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/postgrid/postgrid-address-verification-api/revisions/537d2bbc624a/schema)
