Skip to main content
PUT
Update Webhook

路径参数

string
必填
要更新的 Webhook ID(例如 whk_abc123)。

请求体

string
更新后的 Webhook 端点 HTTPS URL。
string[]
更新后的事件类型订阅列表。
string
更新后的签名密钥。必须以 whsec_ 开头。

示例

授权

X-API-Key
string
header
必填

API key authentication. Keys are prefixed with awx_.

路径参数

id
string
必填

The webhook ID to update (e.g., whk_abc123).

请求体

application/json
url
string<uri>

Updated HTTPS URL for the webhook endpoint.

events
string[]

Updated list of event types to subscribe to.

secret
string

Updated signing secret. Must start with whsec_.

响应

Webhook updated successfully.

A registered webhook endpoint for receiving real-time event notifications.

id
string

Unique webhook identifier (e.g., whk_abc123).

url
string<uri>

HTTPS URL that receives webhook events.

events
string[]

List of subscribed event types.

status
enum<string>

Webhook status.

可用选项:
active,
inactive
created_at
string<date-time>

ISO 8601 creation timestamp.