[api] Ensure parameters are parsed correctly in VariantsController#create