---
title: "Update a webhook destination"
method: POST
path: "/v1/{organization}/webhook_destination/{webhook_destination_id}"
tags: ["Webhook Destination"]
---

# Update a webhook destination

`POST /v1/{organization}/webhook_destination/{webhook_destination_id}`

Update certain configs for a webhook destination. The changes will only take effect a few seconds after this endpoint returns.

The URL of a webhook destination cannot be changed. Use [`Create a webhook destination`](create-webhook-destination) instead.

#### Permissions
This endpoint requires the following permissions:
* `Webhook:UpdateWebhookDestination` for the webhook destination.

## Path parameters

- `webhook_destination_id` string, required — The identifier of the webhook destination to update.
- `organization` string, required

## Headers

- `x-mongo-cluster-name` string, nullable — The Mongo cluster name to perform this request in. This is usually not needed unless the organization does not exist yet in the Amigo organization infra config database.
- `Sec-WebSocket-Protocol` string[]

## Request body

- SrcAppEndpointsWebhookDestinationUpdateWebhookDestinationRequest
  - `retry_attempts` integer, nullable — The number of attempts to retry sending the webhook event in case of failure. If not specified, this field is not updated.
  - `accepted_types` WebhookType[], nullable — A list of webhook types to receive. If not specified, this field is not updated.

## Response `204`

Succeeded.

## Other responses

- `401` — Invalid authorization credentials.
- `403` — Missing required permissions.
- `404` — Specified organization or webhook destination is not found.
- `409` — A related operation is in progress.
- `422` — Invalid request path parameter or request body failed validation.
- `429` — The user has exceeded the rate limit of 20 requests per minute for this endpoint.
- `503` — The service is going through temporary maintenance.

---

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