update api module for code violations to match update
d server response format