Add id to the api_repr for elections.