changes function for endpoint new/customer/ POST