We are using Github API https://api.github.com/repos/:owner/:repo/hooks
to create the Jenkins service in the repositoy. We are sending the following body
{
"name": "jenkins",
"active": true,
"events": [
"push",
"pull_request"
],
"config": {
"url": "https://anon.com/jenkins/folder1/job/folder2/",
"content_type": "json"
}
}
When we are using Rest Client to invoke the above API then we are getting the service created in the repository but the url field is coming blank as shown below: