Create a new system hook
POST
/v3/hooksCreate a new system hook
请求参数
Body 参数application/x-www-form-urlencoded
url
string
必需
The URL to send the request to
token
string
可选
The token used to validate payloads
push_events
boolean
可选
Trigger hook on push events
tag_push_events
boolean
可选
Trigger hook on tag push events
enable_ssl_verification
boolean
可选
Do SSL verification when triggering the hook
示例代码
返回响应
成功(201)
HTTP 状态码: 201
内容格式: JSONapplication/json
Create a new system hook
数据结构
Delete a hook
id
string
可选
url
string
可选
created_at
string
可选
push_events
string
可选
tag_push_events
string
可选
enable_ssl_verification
string
可选
示例
{
"id": "string",
"url": "string",
"created_at": "string",
"push_events": "string",
"tag_push_events": "string",
"enable_ssl_verification": "string"
}
最后修改时间: 1 个月前