Update api-client to work with code output