Fix api documentation

ref #4883

cc @DeepDiver1975 @karlitschek