---
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.

---

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