Single contact with multiple account

I want to add single contact can be associated with two diffrent account in suitecrm. Could you please help how we can achieve this?

Add a many-to-many relationship between Contacts and Accounts in Admin -> Studio

Can we achieve this using REST API as I am creating contacts externally ?