Anchor to section titled 'undefined'

companyContactUpdate
mutation

Requires write_customers access scope or write_companies access scope. Also: The API client must be installed on a Shopify Plus store.

Updates a company contact.


Anchor to companyContactId
companyContactId
required

The ID of the company contact to be updated.

The fields to use to update the company contact.


Was this section helpful?

The updated company contact.

The list of errors that occurred from executing the mutation.


Was this section helpful?
Hide code
Mutation reference
Copy
mutation companyContactUpdate($companyContactId: ID!, $input: CompanyContactInput!) {
companyContactUpdate(companyContactId: $companyContactId, input: $input) {
companyContact {
# CompanyContact fields
}
userErrors {
field
message
}
}
}
Hide code
Input
Copy
{
"companyContactId": "gid://shopify/<objectName>/10079785100",
"input": {
"email": "<your-email>",
"firstName": "<your-firstName>",
"lastName": "<your-lastName>",
"locale": "<your-locale>",
"phone": "<your-phone>",
"title": "<your-title>"
}
}
input CompanyContactInput {
email: String
firstName: String
lastName: String
locale: String
phone: String
title: String
}