How to set Primarycontact via the api

I’m creating contacts and assigning them to a company record however I can’t find where in the documentation that sets the Primary Contact within the company.

Is there some additional information I can pass into the contact json payload to do this.

Your help appreciated.