adding ids to entity API objects