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.