# Update company contact

Source: https://developer.avalara.com/products/returns/integration-guides/managed-returns/aul1047329611206/

Guide: Avalara Managed Returns API (U.S. and Canada)

# Update company contact

Manage and update company contacts for tax-related communications and inquiries.

Update an existing contact for a company. This action modifies details such as name, address, phone numbers, email, or title.

## Common use cases

The following use cases describe common scenarios in which you need to update a contact:

-   Update contact information when an employee changes roles.

-   Correct outdated or incorrect contact details.

-   Update the address when a contact relocates.

-   Modify phone numbers or email addresses.

-   Change contact titles or professional information.

To update a company contact, use the `updateContact` mutation.

## View request

```
mutation UpdateContact {
  updateContact(
    companyId: 12345
    contactId: 789
    input: {
      firstName: "John"
      lastName: "Smith"
      title: "Senior Tax Manager"
      email: "john.smith@company.com"
      phone: "555-123-4567"
      mobile: "555-999-8888"
      line1: "456 Oak Avenue"
      city: "Bellevue"
      region: "WA"
      postalCode: "98004"
      country: "US"
    }
  ) {
    id
    companyId
    firstName
    lastName
    title
    email
    phone
    mobile
    line1
    city
    region
    postalCode
    country
  }
}
```

## View response

```
{
  "data": {
    "UpdateContact": {
      "id": 789,
      "companyId": 12345,
      "firstName": "John",
      "lastName": "Smith",
      "title": "Senior Tax Manager",
      "email": "john.smith@company.com",
      "phone": "555-123-4567",
      "mobile": "555-999-8888",
      "line1": "456 Oak Avenue",
      "city": "Bellevue",
      "region": "WA",
      "postalCode": "98004",
      "country": "US"
    }
  }
}
```

The contact information is updated for the specified company.