---
title: "Update a worker webhook"
method: PUT
path: "/api/workers/{workerId}/webhook"
tags: ["Webhooks"]
---

# Update a worker webhook

`PUT /api/workers/{workerId}/webhook`

Set or replace the webhook URL for a worker. A fresh token is generated the first time a URL is set; subsequent updates keep the existing token. Pass `url: null` to clear the webhook (use the dedicated DELETE for the same effect). Only the worker creator can update the webhook.

## Path parameters

- `workerId` string, required

## Request body

- UpdateWebhookRequest
  - `url` string, uri, nullable, required — HTTPS endpoint Handinger should POST to when a task finishes. Pass `null` to remove the webhook and clear its token.

## Response `200`

Updated webhook configuration.

- Webhook
  - `url` string, nullable, required — HTTPS endpoint that receives webhook deliveries when a task completes. `null` when no webhook is configured.
  - `token` string, nullable, required — Shared secret sent in the `X-Handinger-Token` header on each delivery. `null` when no webhook is configured.

## Other responses

- `401` — Unauthorized.
- `403` — Forbidden.
- `404` — Not found.
- `429` — Rate limit exceeded.
- `500` — Internal server error.

## Changes

- **2026-05-11** `739921ecbe94` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/ramensoft/apis/handinger-api/changes/api/workers/:workerId/webhook/put.md)

---

[API](https://skmtc.dev/ramensoft/apis/handinger-api.md) · [All operations](https://skmtc.dev/ramensoft/apis/handinger-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ramensoft/handinger-api/revisions/95b6b61a63ef/schema)
