Replace hardcoded api with apiVersion constant

The apiVersion is a constant that is defined in force.go.