companyAssignMainContact - admin-graphql - MUTATION
Version: 2025-01
Description:
Assigns the main contact for the company.
Access Scopes
`write_customers` access scope or `write_companies` access scope. Also: The API client must be installed on a Shopify Plus store.
Arguments
-
companyContactId:
ID! -
The ID of the company contact to be assigned as the main contact.
-
companyId:
ID! -
The ID of the company to assign the main contact to.
Returns
-
company:
Company
The company for which the main contact is assigned.
-
userErrors:
BusinessCustomerUserError!
The list of errors that occurred from executing the mutation.
Examples