Changing attribute_map to array for new API
Updating endpoint