Is there any way to insert or update a Contact with added Products?

Is there any way to insert or update a Contact with added Products?

Hi,

I wonder if is there any way to insert/update a Contact or an Account with adding Products? Or update a Products with adding Contacts to it. Actually I would need to link these two entity Contacts/Products via the API.
I read through the documentation but I couldn't find any hint. 

Thanks.