REST POST not working with a required field

Hi, We have generated a REST webservice to import data in our data-model. The web service is working fine for the GET, PATCH and DELETE but the POST doesn't work. After some research we found that this is due to a field being required (removing the validation rule fixed the issue). Of course this not what we want. How can we use the POST service and still have the validation rule for required fields?
1 answers

The error will occur after commit of the object. Set correct errorhandling on that action and change the HttpResponse object  parameter of your microflow to a httpcode 422 or something and end your microflow.