update truck api controller