Can you trigger a webhook if and only if a build succeeds?

I see that there’s a webhook trigger for Build Events (e.g. it triggers any time a build status changes), but is there a way to trigger a webhook if and only if a build passes? If it’s not possible, what is the recommended way to handle this–Have the webhook check the webhook request body for the status of the build? What if I don’t have that type of control over the receiving end of the webhook?

There isn’t a separate web hook for passing builds, unfortunately. You can query an individual build using the API, to determine the build status.

Please could you upvote the following issue so the documents will be updated with the information about build event webhooks: https://gitlab.com/gitlab-org/gitlab-ce/issues/15198