如何使用Bitbucket API删除或修改钩子?我只看到GET和POST

时间:2019-05-26 03:13:49

标签: bitbucket bitbucket-api

https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Busername%7D/%7Brepo_slug%7D/hooks

我只看到GET和POST动词用于Bitbucket上的钩子事件。有办法以某种方式删除或修改它们吗?

1 个答案:

答案 0 :(得分:2)

是的。只需在/{uid}之后附加/hooks,您就可以对各个操作进行操作。有关它们的文档,请参见https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Busername%7D/%7Brepo_slug%7D/hooks/%7Buid%7D