API: fix PHP warning on /api/ call (without parameters)

Yes, required is completely out of place here (I was thinking "requested").