Fixed API parameters validation. Updated the documentation to reflect these changes.