ensure that required parameters are passed to api method