# contactUpdate

Update a contact

**Scope required:** standard:write

For a complete list of input attributes see the [ContactAttributes](https://docs.bunny.com/developer/api-reference/types/contactattributes) type

```graphql
mutation contactUpdate ($id: ID!, $code: String!, $attributes: ContactAttributes!) {
  contactUpdate (id: $id, code: $code, attributes: $attributes) {
      contact {
        accountId
        code
        createdAt
        customFieldsData
        description
        email
        entityId
        firstName
        fullName
        hasCustomFields
        id
        lastName
        linkedinUrl
        mailingCity
        mailingCountry
        mailingState
        mailingStreet
        mailingZip
        mobile
        phone
        portalAccess
        salutation
        title
        updatedAt
      }
      errors
  }
}
```

## Arguments

```json
{
  "id": "456123",
  "code": "",
  "attributes": {
    "code": "",
    "firstName": "",
    "lastName": "",
    "email": "",
    "salutation": "",
    "title": "",
    "phone": "",
    "mobile": "",
    "mailingStreet": "",
    "mailingCity": "",
    "mailingZip": "",
    "mailingState": "",
    "mailingCountry": "",
    "portalAccess": true,
    "description": "",
    "accountId": "456123",
    "accountCode": "",
    "campaignCode": "",
    "linkedinUrl": ""
  }
}
```

| Name       | Type                                                                                        | Description |
| ---------- | ------------------------------------------------------------------------------------------- | ----------- |
| id         | ID                                                                                          |             |
| code       | String                                                                                      |             |
| attributes | [ContactAttributes](https://docs.bunny.com/developer/api-reference/types/contactattributes) |             |

## Response

| Name    | Type                                                                    | Description |
| ------- | ----------------------------------------------------------------------- | ----------- |
| contact | [Contact](https://docs.bunny.com/developer/api-reference/types/contact) |             |
| errors  | String                                                                  |             |
