Fix API constructor method signature in docs