Error calling the register API endpoint

I figured it out, it wasn’t as complicated as I expected.

In the user I had different fields, like firstName, lastName etc. All of these fields were required.

I made the fields not required and now it works.