[api] fix more of my stupid copy&paste programming

Unfortunately build status is hard to test during test suite as we don't build ;(