代码托管 CODEARTS REPO-为指定仓库添加Webhook:请求示例

时间:2024-10-26 11:09:47

请求示例

POST https://{endpoint}/v1/repositories/{group_name}/{repository_name}/hooks

{
  "service" : 11,
  "token" : "test",
  "hook_url" : "https://alpha.devcloud.intest.com/",
  "hook_events" : [ "push_events" ]
}
support.huaweicloud.com/api-codeartsrepo/AddHooks.html