Assign Contact Roles to Potentials using API

Assign Contact Roles to Potentials using API

Is there a form usign API to assign contact, and it's related role to a potential?