---
title: "PUT /webhook/updateWebhook"
method: PUT
path: "/webhook/updateWebhook"
tags: ["WebhookService"]
---

# PUT /webhook/updateWebhook

`PUT /webhook/updateWebhook`

## Request body

- UpdateWebhookRequest — All update properties aside from the id are optional
  - `id` string
  - `external_id` NullableString — Set "data" to "newValue" to update, or "null" to null to remove
    - `null` string
    - `data` string
  - `resource_id` ResourceId
    - `valve_id` string
    - `irrigation_controller_id` string
    - `program_id` string
    - `lighting_controller_id` string
  - `url` string
  - `event_types` WebhookEventTypes
    - `event_types` string[]

## Response `200`

OK

- UpdateWebhookResponse
  - `webhook` Webhook
    - `id` string
    - `external_id` string
    - `resource_id` ResourceId
      - `valve_id` string
      - `irrigation_controller_id` string
      - `program_id` string
      - `lighting_controller_id` string
    - `url` string
    - `event_types` string[]

---

[API](https://skmtc.net/rach/apis/readme.md) · [All operations](https://skmtc.net/rach/apis/readme/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/rach/readme/revisions/7cb72b0455d5/schema)
