更新工作区 Webhook

更新指定的工作区 webhook。

路径参数

webhook_idstring必需

webhook 的唯一 ID

请求头

xi-api-keystring可选

请求

This endpoint expects an object.
is_disabledboolean必需

是否禁用或启用 webhook

namestring必需

webhook 的显示名称(仅用于显示)。

retry_enabledboolean or null可选

是否为暂时性故障启用自动重试(5xx、429、超时)

request_headersmap from strings to strings or null可选

Webhook 发送时附带的请求标头列表(可选)

eventslist of enums or null可选

此 webhook 应订阅的完整工作区级事件集。webhook 会添加到列表中的事件,并从不在列表中的事件移除。省略则保留当前事件订阅不变。

允许的值:

响应

成功响应

statusstring

修补工作区 webhook 请求的状态。如果请求成功,状态将为 ‘ok’。否则将返回状态为 500 的错误消息。

错误

422
Unprocessable Entity Error