版本:202506
更新 Webhook
PUT/openapi/2025-06/webhooks/:id
通过 Webhook ID 更新指定的 Webhook。
请求
Path参数
id string必填
Webhook ID
- application/json
- 请求体
- 示例
请求体必填
idstring必填
Webhook ID
webhook object必填
{
"id": "string",
"webhook": {
"address": "string",
"topic": "string"
}
}
响应
- 200
OK
- application/json
- 数据结构
- 示例
数据结构
codestring
错误码
messagestring
错误信息
data object
webhook object
Webhook 信息
idstring
Webhook 的Webhook ID
addressstring
Webhook 通知 URL,如 https://example.com/webhook
topicstring
Webhook 的主题
created_atstring
Webhook 的创建时间
updated_atstring
Webhook 的更新时间
formatstring
Webhook 的格式
{
"code": "string",
"message": "string",
"data": {
"webhook": {
"id": "string",
"address": "string",
"topic": "string",
"created_at": "string",
"updated_at": "string",
"format": "string"
}
}
}