Anchor to companyUpdatecompany
company Update
mutation
Requires access scope or
access scope. Also: The API client must be installed on a Shopify Plus store.
Updates a company.
Anchor to Arguments
Arguments
- Anchor to companyIdcompany•
Id ID!required The ID of the company to be updated.
- Anchor to inputinput•Company
Input!required The input fields to update the company.
Was this section helpful?
- Anchor to companycompany•
The updated company.
- Anchor to userErrorsuser•
Errors [BusinessCustomer User Error!]!non-null The list of errors that occurred from executing the mutation.
Was this section helpful?
Mutation Reference
1mutation companyUpdate($companyId: ID!, $input: CompanyInput!) {2 companyUpdate(companyId: $companyId, input: $input) {3 company {4 # Company fields5 }6 userErrors {7 field8 message9 }10 }11}
Input
1{2 "companyId": "gid://shopify/<objectName>/10079785100",3 "input": {4 "customerSince": "2019-09-07T15:50:00Z",5 "externalId": "<your-externalId>",6 "name": "<your-name>",7 "note": "<your-note>"8 }9}
{
"companyId": "gid://shopify/<objectName>/10079785100",
"input": {
"customerSince": "2019-09-07T15:50:00Z",
"externalId": "<your-externalId>",
"name": "<your-name>",
"note": "<your-note>"
}
}
input CompanyInput {
customerSince: DateTime
externalId: String
name: String
note: String
}