API v4 failed to create webhook

As the docs (https://docs.gitlab.com/ee/api/projects.html#add-project-hook) describe the API call should have only URL in the body, the server always returns 500 with a message something went wrong.
I know the rest of my calls are ok since I can get the list of the hooks same way, for example.