Quick heads up; the 1.36.12 Zoneminder package in whatever the default 22.04 LTS repo is has incorrect /etc/apache2/conf-enabled/zoneminder.conf. Specifically api folder has just allowoverrides enabled, but no .htaccess or similar file exists in /usr/share/zoneminder/www/api/ therefore config for api is missing.
Easy fix and probably better way to install is to use the (official?) PPA:
sudo add-apt-repository ppa:iconnor/zoneminder-1.36
sudo apt update
sudo apt upgrade
In place upgrade from the distro provided package is also working.