---
title: "Update the Webhook for an environment"
method: PUT
path: "/environments/{environmentId}/webhooks/{webhookId}"
tags: ["Webhooks"]
---

# Update the Webhook for an environment

`PUT /environments/{environmentId}/webhooks/{webhookId}`

## Path parameters

- `environmentId` string, required
- `webhookId` string, required

## Request body

- WebhookUpdateRequest
  - `url` string, required
  - `isEnabled` boolean, required
  - `events` string[], required

## Response `200`

Webhook for this project environment

- Webhook
  - `environmentId` string, required
  - `webhookId` string, required
  - `url` string, required
  - `secret` string
  - `version` string
  - `events` string[], required
  - `isEnabled` boolean, required
  - `enabledAt` string, date-time
  - `createdAt` string, date-time, required
  - `updatedAt` string, date-time, required

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `500` — Internal Server Error

---

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