For #24681 allow creating PageHit from api