Octri

webhooks update

更改 webhook。未传入的任何值都会保持不变。持续投递失败的 webhook 会自动关闭;端点修复后,--enable 会重新将其开启。

bash
octri webhooks update <id> [--url <url>] [--events <events>] [--label <label>] [--enable | --disable]

参数

<id>string必填

要删除的 webhook,取自 octri webhooks list。

标志

--url <url>string

新地址。

--events <events>list

替换事件,或使用 all。

--label <label>string

新标签。

--enableboolean

将其开启。

--disableboolean

将其关闭。

示例

重新开启 webhook

bash
octri webhooks update 6aedf8881af7e1c4199c04f1 --enable
Output
✔ Updating webhook
✔ Webhook Acme updated.