Very basic save function using the REST api