API update for struct