Modifying existing webhooks

We have a handful of webhook URLs spread out in different organizations with the same name. We need to modify this to point to a new server.

Old: http://jenkins.old.com
New: http://jenkins.new.com

I’m not seeing an easy way to use the REST API to query this and modify this. Can anyone give me any advice?

1 Like

Hey @jwmoss :wave:

We do have an endpoint for this purpose:

…which is:

PATCH /repos/{owner}/{repo}/hooks/{hook_id}

Perhaps you’ve already found this but I hope this is helpful!

I did figure this out! Thanks!

1 Like