QamaqQamaq
PATCH

更新 webhook

/webhooks/{webhook_id}

更新 webhook 属性。

参数

路径参数

名称类型描述
webhook_id必填
string

The webhook ID

请求体

application/json必填
{
name:string
url:string
events:string[]
secret:string
headers:object
is_active:boolean
}

代码示例

curl -X PATCH "https://api.qamaq.io/api/v1/webhooks/{webhook_id}" \
  -H "Authorization: Bearer qmq_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{"key": "value"}'

响应

200Webhook updated successfully

Response Body

{
id:string
name:string
url:string
events:string[]
has_secret:boolean
headers:object
is_active:boolean
last_triggered_at:string (date-time)
last_status:string
failure_count:integer
created_at:string (date-time)
updated_at:string (date-time)
}