--- title: companyAssignMainContact - GraphQL Admin description: Assigns the main contact for the company. api_version: 2025-10 api_name: admin type: mutation api_type: graphql source_url: html: https://shopify.dev/docs/api/admin-graphql/latest/mutations/companyassignmaincontact md: https://shopify.dev/docs/api/admin-graphql/latest/mutations/companyassignmaincontact.md --- # company​Assign​Main​Contact mutation Requires `write_customers` access scope or `write_companies` access scope. Also: The API client must be installed on a Shopify Plus store. Assigns the main contact for the company. ## Arguments * company​Contact​Id [ID!](https://shopify.dev/docs/api/admin-graphql/latest/scalars/ID) required The ID of the company contact to be assigned as the main contact. * company​Id [ID!](https://shopify.dev/docs/api/admin-graphql/latest/scalars/ID) required The ID of the company to assign the main contact to. *** ## Company​Assign​Main​Contact​Payload returns * company [Company](https://shopify.dev/docs/api/admin-graphql/latest/objects/Company) The company for which the main contact is assigned. * user​Errors [\[Business​Customer​User​Error!\]!](https://shopify.dev/docs/api/admin-graphql/latest/objects/BusinessCustomerUserError) non-null The list of errors that occurred from executing the mutation. *** ## Examples * ### companyAssignMainContact reference ## Mutation Reference ```graphql mutation companyAssignMainContact($companyId: ID!, $companyContactId: ID!) { companyAssignMainContact(companyId: $companyId, companyContactId: $companyContactId) { company { # Company fields } userErrors { field message } } } ``` ## Input ```json { "companyId": "gid://shopify//10079785100", "companyContactId": "gid://shopify//10079785100" } ``` ##### Variables ``` { "companyId": "gid://shopify//10079785100", "companyContactId": "gid://shopify//10079785100" } ```