[CNS] Add id member to reference objects in API (#479)