Bật/Tắt Webhook

Gộp chung 2 thao tác trạng thái theo action: enable (bật), disable (tắt). Cả hai đều đồng thời gỡ trạng thái chặn do lỗi (nếu có). Scope yêu cầu: webhook:write.

Path parameters

actionenumRequired
Allowed values:

Headers

X-Api-KeystringRequired

Query parameters

idstringRequired

Response

Thành công — body {status: "ENABLED" | "DISABLED"} tương ứng theo action.

Errors

401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
502
Bad Gateway Error