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

# Update webhook

`PUT /v1/webhooks/{id}`

Updates an existing webhook identified by its unique ID. Only webhooks owned by the authenticated user can be updated. This endpoint allows changing the target URL and event type.

## Path parameters

- `id` string, required

## Request body

- WebhookUpdateDto
  - `target` string
  - `event` string
  - `deleted` boolean

## Response `200`

Webhook updated successfully

- WebhookDto
  - `id` string
  - `target` string
  - `event` string
  - `user` string
  - `deleted` boolean
  - `lastUpdate` integer
  - `created` integer

## Other responses

- `400` — Bad request - invalid webhook details provided
- `401` — Not authorized to update this webhook
- `403` — Forbidden - insufficient permissions to update this webhook
- `404` — Webhook not found

---

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