Angular5 POST request to Phoenix Frramework (api), send 422 (Unprocessable Entity)

Just copy the line from the error page, below “The request parameters are:”

Paste that into a text editor, now take your create function head parameters and paste it below that, %{"enrollment" => enrollment_params}. Can they match?