Unfortunately, the persisted entity in db table leads only contains fields of value NULL except for fields id, is_published, date_added, created_by and created_by_user. It worked some days ago, not sure, what happened. I checked for users with restricted and also admin rights.
These errors are showing in the log: None, the server sends a 201 (Created) instead.
While step debugging into LeadApiController.php::newEntityAction(), it seems to be that the API is using the controller to fill the request parameters into the lead form and send this form. It seems to be that the filling is not done right and the form fields remain empty.
In \Mautic\ApiBundle\Controller\CommonApiController::processForm() the $submitParams always contain the correct request parameters, but they never make it into $form nor $entity, where the latter gets eventually persisted in the database.
It seems that {% set groups = fields|keys|sort %} in /public/app/bundles/LeadBundle/Resources/views/Lead/form.html.twig is empty and therefore no fields are rendered ..