Fixed require parameters in api