400 Bad request error

I have solved it. I had to split those endpoints into 2 separate files.
image