Anchor to companyContactUpdatecompany
companyContactUpdate
mutation
Requires access scope or
access scope. Also: The API client must be installed on a Shopify Plus store.
Updates a company contact.
Anchor to Arguments
Arguments
- Anchor to companyContactIdcompany•
Contact Id ID!required The ID of the company contact to be updated.
- Anchor to inputinput•Company
Contact requiredInput! The fields to use to update the company contact.
Was this section helpful?
Anchor to CompanyContactUpdatePayload returnsCompanyContactUpdatePayload returns
- Anchor to companyContactcompany•
Contact The updated company contact.
- Anchor to userErrorsuser•
Errors [BusinessCustomer non-nullUser Error!]! The list of errors that occurred from executing the mutation.
Was this section helpful?
Mutation Reference
mutation companyContactUpdate($companyContactId: ID!, $input: CompanyContactInput!) {
companyContactUpdate(companyContactId: $companyContactId, input: $input) {
companyContact {
# CompanyContact fields
}
userErrors {
field
message
}
}
}
Input
{
"companyContactId": "gid://shopify/<objectName>/10079785100",
"input": {
"email": "<your-email>",
"firstName": "<your-firstName>",
"lastName": "<your-lastName>",
"locale": "<your-locale>",
"phone": "<your-phone>",
"title": "<your-title>"
}
}
{
"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
}