As the docs (Projects API | GitLab) 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.