Pins are relation between an issue and an object. It defines position of an issue in the 3D space. Please see the detailed structure of the pin in the Object Model
Please use the Bimplus Issue Service for creating a pin or for getting/deleting all the pins assigned to an issue