๐จโ๐ Update webhook
Code samples
PUT /api/v1/trx/webhooks/{webhook}
Updates a webhook that belongs to the authenticated user
Body parameter
{
"coin": "TRX",
"webhook_url": "https://example.com/webhook",
"addresses": [
"TLWKepDBC8RZjAhtWyNqASyzgyVyHUuS7o"
],
"is_active": true
}
๐ ๏ธ Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| webhook | path | integer | true | Webhook ID |
| body | body | WebhookUpdateRequest | true | none |
Example responses
200 Response
{
"data": {
"id": 1,
"user_id": 10,
"coin": "TRX",
"webhook_url": "https://example.com/webhook",
"addresses": [
"TLWKepDBC8RZjAhtWyNqASyzgyVyHUuS7o"
],
"is_active": true,
"created_at": "2025-09-16T12:00:00Z",
"updated_at": "2025-09-16T12:00:00Z"
}
}
๐ Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Successful response | Inline |
| 404 | Not Found | Webhook not found | None |
๐ Response Schema
Status Code 200
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| ยป data | Webhook | false | none | none |
| ยปยป id | integer | false | none | none |
| ยปยป user_id | integer | false | none | none |
| ยปยป coin | string | false | none | none |
| ยปยป webhook_url | string(uri) | false | none | none |
| ยปยป addresses | [string] | false | none | none |
| ยปยป is_active | boolean | false | none | none |
| ยปยป created_at | string(date-time) | false | none | none |
| ยปยป updated_at | string(date-time) | false | none | none |
Enumerated Values
| Property | Value |
|---|---|
| coin | TRX |