Add attribute to enable v2 API

It's disabled by default.