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

How to delete or modify hooks with Bitbucket API? I only see GET and POST

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

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

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