Anchor to companyAssignMainContactcompany
companyAssignMainContact
mutation
Requires access scope or
access scope. Also: The API client must be installed on a Shopify Plus store.
Assigns the main contact for the company.
Anchor to Arguments
Arguments
- Anchor to companyContactIdcompany•
Contact Id ID!required The ID of the company contact to be assigned as the main contact.
- Anchor to companyIdcompany•
Id ID!required The ID of the company to assign the main contact to.
Was this section helpful?
Anchor to CompanyAssignMainContactPayload returnsCompanyAssignMainContactPayload returns
- Anchor to companycompany•
The company for which the main contact is assigned.
- Anchor to userErrorsuser•
Errors [BusinessCustomer non-nullUser Error!]! The list of errors that occurred from executing the mutation.
Was this section helpful?
Mutation Reference
1mutation companyAssignMainContact($companyContactId: ID!, $companyId: ID!) {2 companyAssignMainContact(companyContactId: $companyContactId, companyId: $companyId) {3 company {4 # Company fields5 }6 userErrors {7 field8 message9 }10 }11}
Input
1{2 "companyContactId": "gid://shopify/<objectName>/10079785100",3 "companyId": "gid://shopify/<objectName>/10079785100"4}
{
"companyContactId": "gid://shopify/<objectName>/10079785100",
"companyId": "gid://shopify/<objectName>/10079785100"
}