---
title: "companyContactUpdate"
description: "Company contact update"
doc_type: graphql
doc_category: adminGraphQL
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/admin-graph-ql-api/b-2-b/mutations/company-contact-update'
  md: 'https://developer.shopline.com/docs/admin-graph-ql-api/b-2-b/mutations/company-contact-update.md'
---
# companyContactUpdate

Company contact update

- **Required Scopes:** `write_customers`
- **API Version:** v20270301
- **API Type:** Admin
- **API Protocol:** GraphQL
- **Operation Type:** Mutation

## Required Permissions

* `write_customers`

An access token is required to call this API. Refer to [Authorization](https://developer.shopline.com/docs/apps/api-instructions-for-use/graph-ql-admin-api/overview.md) for more information about how to obtain the token.

## Arguments

* `companyContactId`

  [ID!](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/id.md)

  Company contact id

* `input`

  [CompanyContactInput!](https://developer.shopline.com/docs/admin-graph-ql-api/b-2-b/inputs/company-contact-input.md)

  Company contact information input

## Returns

* `companyContact`

  [CompanyContact](https://developer.shopline.com/docs/admin-graph-ql-api/b-2-b/objects/company-contact.md)

  Company contact information

* `userErrors`

  [[BusinessCustomerUserError!]!](https://developer.shopline.com/docs/admin-graph-ql-api/customers/objects/business-customer-user-error.md)

  Error message

## Examples

### Update company contact information

Update company contact the user email, phone number, name, etc. 

**Request:**

```json
{
  "companyContactId": "gid://shopline/CompanyContact/4600093512",
  "input": {
    "email": "*******@example.com",
    "firstName": "S*****",
    "lastName": "T*****",
    "locale": "en",
    "phone": "0086139****5903"
  }
}


```

**Response:**

```json
{
  "data": {
    "data": {
      "companyContactUpdate": {
        "companyContact": {
          "updatedAt": "2023-12-21T10:41:17.580Z",
          "company": {
            "id": "gid://shopline/Company/6254924101557166237",
            "name": "test2"
          },
          "createdAt": "2023-12-21T10:25:42.374Z",
          "customer": {
            "id": "gid://shopline/Customer/gid://shopline/Customer/4600093512",
            "lastName": "T*****",
            "phone": "0086139****5903",
            "addresses": [],
            "email": "*******@example.com",
            "firstName": "S*****"
          },
          "id": "gid://shopline/CompanyContact/gid://shopline/CompanyContact/4600093512",
          "isMainContact": false
        },
        "userErrors": []
      }
    }
  }
}
```

## Error Handling

For detailed information about common codes, see [Status and error codes](https://developer.shopline.com/docs/apps/api-instructions-for-use/graph-ql-admin-api/overview.md#status-and-error-codes).

