Added back support for enums in API calls.