api: Fix ValueErrors on functions that expect different parameters
api: Fix ValueErrors on functions that expect different parameters

peterhil/ninhursag,peterhil/ninhursag,peterhil/ninhursag,peterhil/ninhursag