Cannot update webhook through API
Summary
I am attempting to update NGitlab (a C# client) to v4 of the API. I'm trying to update a test that creates a webhook, then changes it. However, I cannot get the update to work for the hook.
Steps to reproduce
I'm using the following JSON:
{
"id":51,
"url":"http://scooletz.com",
"push_events":true,
"merge_requests_events":true,
"issues_events":false,
"tag_push_events":true,
"note_events":false,
"job_events":false,
"pipeline_events":false,
"wiki_events":false,
"enable_ssl_verification":false,
"confidential_issues_events":false,
"hook_id":15
}
I'm passing this as a PUT request to /projects/51/hooks/15.
After some more testing, it appears I cannot set "job_events" to anything other than true.
What is the current bug behavior?
An internal server error occurs and the webhook is not updated.
What is the expected correct behavior?
The webhook should be updated.
Edited by 🤖 GitLab Bot 🤖