apm_disable_version version_id
Disables a version of a package.
Source code:
db_dml "update apm_package_versions set enabled_p = 'f' where version_id = $version_id"