v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1445247249.8 KB

Updates the webhook associated with an CodeBuild build project.

If you use Bitbucket for your repository, rotateSecret is ignored.

post/#X-Amz-Target=CodeBuild_20161006.UpdateWebhook

Headers

X-Amz-Target'CodeBuild_20161006.UpdateWebhook' required

Request body

projectNamestring required

The name of the CodeBuild project.

branchFilterstring
<p>A regular expression used to determine which repository branches are built when a webhook is triggered. If the name of a branch matches the regular expression, then it is built. If <code>branchFilter</code> is empty, then all branches are built.</p> <note> <p> It is recommended that you use <code>filterGroups</code> instead of <code>branchFilter</code>. </p> </note>
rotateSecretboolean

A boolean value that specifies whether the associated GitHub repository's secret token should be updated. If you use Bitbucket for your repository, <code>rotateSecret</code> is ignored.

buildType'BUILD' | 'BUILD_BATCH'

Specifies the type of build this webhook will trigger.

Response

Success