Updated the backend according to the Cosmo REST API documentation