PATCHUpdate Webhook

Webhook APIhttps://web3.nodit.io/v1/aptos/mainnet/webhooks/5001

You can modify the subscription condition of a Webhook, or activate or deactivate a Webhook.

[확인 필요] Whether the condition of an ADDRESS_ACTIVITY Webhook can be changed to addressSetId (switching from listed addresses to an Address Set, or replacing the set) needs to be confirmed. The addressSetId field in the condition schema below is a definition shared with Create Webhook.

Path Parameters
chainstring (enum)required

Parameter to specify the target chain for the query.

networkstring (enum)required

Parameter to specify the network of the target chain. Supported networks may vary depending on the chain.

subscriptionIdstringrequired

Parameter that specifies the subscriptionId assigned to the Webhook to query. Use the subscriptionId returned when creating the Webhook to query, update, or delete Webhook information.

Request Body
webhookUrlstring

Parameter that specifies the webhook URL to receive notifications when subscribed events occur. Must be a publicly accessible URL.

descriptionstring

Parameter that specifies the description of the event.

isActiveboolean

Parameter specifying whether the Webhook is active. When set to true, the Webhook is activated; when set to false, it is deactivated. A deactivated Webhook cannot receive notifications but is not deleted.

conditiononeOf
oneOf

Monitors activity of the addresses you specify. This event sends a notification whenever these accounts are involved as either sender (from) or recipient (to) in a transaction, i.e., when a transaction, token transfer (ERC20), or NFT transfer (ERC721, ERC1155) occurs. This service enables users to track activity across multiple addresses in real time and effectively monitor asset movements and transactions. Provide the monitored addresses in exactly one of two ways, either listing them directly in addresses or specifying the addressSetId of a set created in advance with the Address Set API. Providing both returns 400 INVALID_PARAMETER, and providing neither returns 400 MISSING_REQUIRED_PARAMETER.

addressesstring (^0[xX][0-9a-fA-F]{40}$)[]

List of addresses to monitor for events. Cannot be used together with addressSetId.

addressSetIdstring

The addressSetId of the Address Set whose addresses are to be monitored. Specify a set created in advance with the Address Set API; it cannot be used together with addresses. The set must be in READY status (otherwise 409 ADDRESS_SET_NOT_READY), and its addressFormat must match the chain's address format (otherwise 422 ADDRESS_SET_FORMAT_MISMATCH). Specifying a set that does not exist, or that belongs to another account or another project, returns 404 RESOURCE_NOT_FOUND. Pass the 19-digit number as a string.

Responses
resultboolean

Field representing the call result. Returns true on success, false on failure.

X-API-KEY
Request
cURL
curl -X PATCH "https://web3.nodit.io/v1/aptos/mainnet/webhooks/5001" \
  -H "X-API-KEY: {YOUR_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{
  "notification": {
    "webhookUrl": "https://your-webhook-url.com"
  },
  "description": "Your webhook description",
  "isActive": false,
  "condition": {
    "addresses": [
      "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
    ]
  }
}'
Response
Example · 200
{
  "result": true
}