Setup Webhook using API

Hi there,

Is there any way to modify/create new Webhook using an API?

Use-case: I need to establish new Jenkins server from image (AWS AMI) , then I need via automation to point the GitLab Webhook to the just created Jenkins server.

Many thanks