Update to version 1.8.1 of api gem