[SQUASH ME] netapi: fix type error