Updates the description, callback URL, or subscribed events of a Webhook. Omitted fields remain unchanged.
Prerequisites
Endpoint and authentication configured. For details, see Overview and authentication.
Endpoint
PUT /webhook_endpoints/{id}
Path parameters
id string (必选)
Webhook ID, format wep_<ULID>
Request bodydescriptionstring | null (可选)Max 256 characters; null or empty string clears the description; omitted means unchangedurl string (可选)New callback URL; re-validated when provided; private, loopback, link-local, and reserved addresses are rejectedevents array<string> (可选)Replaces the entire subscription list with named event types; omitted means unchanged | Request example |
Response fieldsidstring—description string | null—url string—events array<string>—status string—disabled_reason string | null—consecutive_fail integerCurrent value at the time of updatelast_success_at string | nullCurrent value at the time of updatelast_failure_at string | nullCurrent value at the time of updatecreated_at string—updated_at string—request_id stringUnique identifier for this request; include it when troubleshooting | Response |
Error codes
| HTTP status | Error code | Description |
|---|---|---|
| 400 | 11800016 | invalid webhook request |
| 404 | 11800001 | webhook not found |