ensure apiVersion is null by default, and only apply it as a header if it has been specified