As I was using Fiddler to test this request, I didn't set the Content-Type header to application/json setting this header fixed the issue and the endpoint is working as expected now.
As I was using Fiddler to test this request, I didn't set the Content-Type header to application/json setting this header fixed the issue and the endpoint is working as expected now.