> Markdown versions of all pages of this connector library are available by appending `.md` to the page URL. For the full index of connectors, see [llms.txt](https://connectors.appmixer.com/llms.txt).

# appmixer.hubspot.crm.UpdateContact

- Component: `appmixer.hubspot.crm.UpdateContact`
- Kind: Action
- Version: 1.0.3
- Visibility: Public
- Connector: [appmixer.hubspot 4.10.0](https://connectors.appmixer.com/connector/appmixer.hubspot/4.10.0.md)
- Component page: <https://connectors.appmixer.com/connector/appmixer.hubspot/4.10.0/component/appmixer.hubspot.crm.UpdateContact>

Update a contact.

## Input ports

### Port `in`

| Field | Type | Description |
| --- | --- | --- |
| Contact ID (`contactId`) | text | The contact's ID. |
| Email (`email`) | text | The contact's email. |
| First name (`firstname`) | text | The contact's first name. |
| Last name (`lastname`) | text | The contact's last name. |
| Phone (`phone`) | text | The contact's phone number. |
| Website (`website`) | text | The contact's website. |
| Company (`company`) | text | The contact's company. |
| Address (`address`) | text | The contact's address. |
| City (`city`) | text | The contact's city. |
| State (`state`) | text | The contact's state. |
| Zip (`zip`) | text | The contact's zip. |
| Additional Properties (`additionalProperties`) | expression | Addition HubSpot or custom properties to add to the contact. |

## Output ports

### Port `updateContact`

Variables are loaded dynamically from `/component/appmixer/hubspot/crm/GetContactsProperties?outPort=out`.

### Port `notUpdated`

| Field | Type | Description |
| --- | --- | --- |
| Email (`email`) | string | - |
| Contact ID (`contactId`) | string | - |

## Full metadata (component.json)

```json
{
  "name": "appmixer.hubspot.crm.UpdateContact",
  "author": "Appmixer <info@appmixer.com>",
  "icon": "(data URI omitted)",
  "description": "Update a contact.",
  "version": "1.0.3",
  "private": false,
  "auth": {
    "service": "appmixer:hubspot"
  },
  "quota": {
    "manager": "appmixer:hubspot",
    "resources": "requests",
    "scope": {
      "userId": "{{userId}}"
    }
  },
  "inPorts": [
    {
      "name": "in",
      "schema": {
        "type": "object",
        "properties": {
          "contactId": {
            "type": "string"
          },
          "email": {
            "type": "string",
            "format": "email"
          },
          "firstname": {
            "type": "string"
          },
          "lastname": {
            "type": "string"
          },
          "website": {
            "type": "string"
          },
          "company": {
            "type": "string"
          },
          "phone": {
            "type": "string"
          },
          "address": {
            "type": "string"
          },
          "city": {
            "type": "string"
          },
          "state": {
            "type": "string"
          },
          "zip": {
            "type": "string"
          },
          "additionalProperties": {
            "type": "object"
          }
        },
        "anyOf": [
          {
            "required": [
              "contactId"
            ]
          },
          {
            "required": [
              "email"
            ]
          }
        ]
      },
      "inspector": {
        "inputs": {
          "contactId": {
            "type": "text",
            "label": "Contact ID",
            "tooltip": "The contact's ID.",
            "index": 1
          },
          "email": {
            "type": "text",
            "label": "Email",
            "tooltip": "The contact's email.",
            "index": 2
          },
          "firstname": {
            "type": "text",
            "label": "First name",
            "tooltip": "The contact's first name.",
            "index": 3
          },
          "lastname": {
            "type": "text",
            "label": "Last name",
            "tooltip": "The contact's last name.",
            "index": 4
          },
          "phone": {
            "type": "text",
            "label": "Phone",
            "tooltip": "The contact's phone number.",
            "index": 5
          },
          "website": {
            "type": "text",
            "label": "Website",
            "tooltip": "The contact's website.",
            "index": 6
          },
          "company": {
            "type": "text",
            "label": "Company",
            "tooltip": "The contact's company.",
            "index": 7
          },
          "address": {
            "type": "text",
            "label": "Address",
            "tooltip": "The contact's address.",
            "index": 8
          },
          "city": {
            "type": "text",
            "label": "City",
            "tooltip": "The contact's city.",
            "index": 9
          },
          "state": {
            "type": "text",
            "label": "State",
            "tooltip": "The contact's state.",
            "index": 10
          },
          "zip": {
            "type": "text",
            "label": "Zip",
            "tooltip": "The contact's zip.",
            "index": 11
          },
          "additionalProperties": {
            "type": "expression",
            "label": "Additional Properties",
            "tooltip": "Addition HubSpot or custom properties to add to the contact.",
            "exclusiveFields": [
              "name"
            ],
            "index": 12,
            "levels": [
              "AND"
            ],
            "fields": {
              "name": {
                "type": "select",
                "label": "Property",
                "tooltip": "The property to add to the contact.",
                "index": 1,
                "source": {
                  "url": "/component/appmixer/hubspot/crm/GetContactsProperties?outPort=out",
                  "data": {
                    "transform": "./GetContactsProperties#additionalFieldsToSelectArray"
                  }
                }
              },
              "value": {
                "type": "text",
                "label": "Value",
                "tooltip": "The value for the property.",
                "index": 2
              }
            }
          }
        }
      }
    }
  ],
  "outPorts": [
    {
      "name": "updateContact",
      "source": {
        "url": "/component/appmixer/hubspot/crm/GetContactsProperties?outPort=out",
        "data": {
          "transform": "./transformers#contactToSelectArray"
        }
      }
    },
    {
      "name": "notUpdated",
      "options": [
        {
          "label": "Email",
          "value": "email",
          "schema": {
            "type": "string",
            "example": "jane.doe@example.com"
          }
        },
        {
          "label": "Contact ID",
          "value": "contactId",
          "schema": {
            "type": "string",
            "example": "151"
          }
        }
      ]
    }
  ],
  "dependencies": {
    "service": "1.0.1"
  }
}
```
