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

# Update webhook

`PUT /api/webhooks/{id}`

Updates webhook configuration. Requires admin role.

## Path parameters

- `id` integer, required

## Request body

- object
  - `name` string
  - `stack_name` string
  - `action` 'deploy' | 'restart' | 'stop' | 'start' | 'pull' | 'git-pull'
  - `enabled` boolean
  - `node_id` integer — Retarget the webhook to a different node.

## Response `200`

Webhook updated.

- SuccessBoolean
  - `success` boolean, required

## Other responses

- `400` — Validation error.
- `403` — Insufficient permissions or license tier.
- `404` — Resource not found.
- `500` — Internal server error.

## Changes

- **2026-06-04** `d58cf9d6195b` — 4 info
  - removed the `ADMIRAL_REQUIRED` enum value from the `code` response property for the response status `400`
  - removed the `ADMIRAL_REQUIRED` enum value from the `code` response property for the response status `403`
  - removed the `ADMIRAL_REQUIRED` enum value from the `code` response property for the response status `404`
  - removed the `ADMIRAL_REQUIRED` enum value from the `code` response property for the response status `500`
- **2026-05-23** `3e94162e8e64` — 1 warning, 2 info
  - the `name` request property's maxLength was set to `100`
  - added the new optional request property `node_id`
  - added the new `git-pull` enum value to the request property `action`
- **2026-04-05** `7464894ea582` — 4 warning, 4 info
  - added the new `PAID_REQUIRED` enum value to the `code` response property for the response status `400`
  - added the new `PAID_REQUIRED` enum value to the `code` response property for the response status `403`
  - added the new `PAID_REQUIRED` enum value to the `code` response property for the response status `404`
  - added the new `PAID_REQUIRED` enum value to the `code` response property for the response status `500`
  - …4 more

[Change history](https://skmtc.dev/studio-saelix/apis/sencho-api/changes/api/webhooks/:id/put.md)

---

[API](https://skmtc.dev/studio-saelix/apis/sencho-api.md) · [All operations](https://skmtc.dev/studio-saelix/apis/sencho-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/studio-saelix/sencho-api/revisions/82aac94c016e/schema)
