Anchor to companyUpdatecompany
companyUpdate
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 CompanyUpdatePayload returnsCompanyUpdatePayload returns
- Anchor to companycompany•
The updated company.
- 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 companyUpdate($companyId: ID!, $input: CompanyInput!) {
companyUpdate(companyId: $companyId, input: $input) {
company {
# Company fields
}
userErrors {
field
message
}
}
}
Input
{
"companyId": "gid://shopify/<objectName>/10079785100",
"input": {
"customerSince": "2019-09-07T15:50:00Z",
"externalId": "<your-externalId>",
"name": "<your-name>",
"note": "<your-note>"
}
}
{
"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
}