API for contact role in potentials ?

API for contact role in potentials ?

Is there an API to set/retrieve the contact roles of a contact linked to a potential ?