--- title: companyUpdate - GraphQL Admin description: |- Updates a [`Company`](https://shopify.dev/docs/api/admin-graphql/latest/objects/Company) with new information. Companies represent business customers that can have multiple contacts and locations with specific pricing, payment terms, and checkout settings. The mutation accepts the company's ID and an input object containing the fields to update. You can modify the company name, add or update internal notes, set an external ID for integration with other systems, or adjust the customer relationship start date. Learn more about [building B2B features](https://shopify.dev/docs/apps/build/b2b/start-building). api_version: 2025-10 api_name: admin type: mutation api_type: graphql source_url: html: https://shopify.dev/docs/api/admin-graphql/latest/mutations/companyupdate md: https://shopify.dev/docs/api/admin-graphql/latest/mutations/companyupdate.md --- # company​Update 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`](https://shopify.dev/docs/api/admin-graphql/latest/objects/Company) with new information. Companies represent business customers that can have multiple contacts and locations with specific pricing, payment terms, and checkout settings. The mutation accepts the company's ID and an input object containing the fields to update. You can modify the company name, add or update internal notes, set an external ID for integration with other systems, or adjust the customer relationship start date. Learn more about [building B2B features](https://shopify.dev/docs/apps/build/b2b/start-building). ## Arguments * company​Id [ID!](https://shopify.dev/docs/api/admin-graphql/latest/scalars/ID) required The ID of the company to be updated. * input [Company​Input!](https://shopify.dev/docs/api/admin-graphql/latest/input-objects/CompanyInput) required The input fields to update the company. *** ## Company​Update​Payload returns * company [Company](https://shopify.dev/docs/api/admin-graphql/latest/objects/Company) The updated company. * user​Errors [\[Business​Customer​User​Error!\]!](https://shopify.dev/docs/api/admin-graphql/latest/objects/BusinessCustomerUserError) non-null The list of errors that occurred from executing the mutation. *** ## Examples * ### companyUpdate reference ## Mutation Reference ```graphql mutation companyUpdate($companyId: ID!, $input: CompanyInput!) { companyUpdate(companyId: $companyId, input: $input) { company { # Company fields } userErrors { field message } } } ``` ## Input ##### Variables ```json { "companyId": "gid://shopify//10079785100", "input": { "name": "", "note": "", "externalId": "", "customerSince": "2019-09-07T15:50:00Z" } } ``` ##### Schema ```graphql input CompanyInput { name: String note: String externalId: String customerSince: DateTime } ```