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

# Update webhook

`PUT /api/v2/ethereum/webhooks/{id}`

Updates an existing webhook with the provided data.

## Headers

- `X-Network` 'testnet' | 'mainnet'
- `Authorization` string, required
- `Content-Type` 'application/json' | 'application/x-www-form-urlencoded' | 'multipart/form-data', required

## Request body

- object
  - `from` string — Sender address (required if not "to"). This field is required when <code>to</code> is not present. Must match the regex /^0x[a-fA-F0-9]{40}$/.
  - `to` string — Receiver address (required if not providing "from"). This field is required when <code>from</code> is not present. Must match the regex /^0x[a-fA-F0-9]{40}$/.
  - `url` string, required — URL for webhook notifications (required). Must be a valid URL.
  - `contractaddress` string — The Address of an Contract you want to track (Not allowwed on Bitcoin). This field is required when none of <code>from</code> and <code>to</code> are present. Must match the regex /^0x[a-fA-F0-9]{40}$/.
  - `token_id` string — This field is required when none of <code>from</code> and <code>to</code> are present.
  - `type` 'ETH' | 'ERC20' | 'ERC721'
  - `reference` string, nullable — A reference for the webhook. Must not be greater than 255 characters.

## Response `200`

- object
  - `status` integer
  - `ok` boolean
  - `message` string
  - `data` object
    - `id` string
    - `from` string
    - `to` string
    - `contractaddress` string
    - `type` string
    - `token_id` string
    - `url` string
    - `is_active` boolean
    - `is_invalid` boolean
    - `old_id` string
    - `created_at` string
    - `updated_at` string
    - `deleted_at` string

## Other responses

- `404`

---

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