---
title: "Update a webhook"
method: PUT
path: "/webhooks/{id}"
tags: ["webhooks"]
---

# Update a webhook

`PUT /webhooks/{id}`

**Access policy**: authenticated

## Path parameters

- `id` integer, required

## Request body

- WebhooksWebhookUpdatePayload
  - `RegistryID` integer

## Response `200`

OK

- PortainerWebhook
  - `EndpointId` integer
  - `Id` integer — Webhook Identifier
  - `RegistryId` integer
  - `ResourceId` string
  - `Token` string
  - `Type` 0 | 1

## Other responses

- `400` — Bad Request
- `409` — Conflict
- `500` — Internal Server Error

---

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