Add a save method to the API