> 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.AddCompanyToList

- Component: `appmixer.hubspot.crm.AddCompanyToList`
- Kind: Action
- Version: 1.0.0
- 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.AddCompanyToList>

Add one or more companies to a HubSpot static list.

## Input ports

### Port `in`

| Field | Type | Description |
| --- | --- | --- |
| List ID (`listId`) | text | The HubSpot static list ID to add companies to. |
| Company IDs (`companyIds`) | text | Single company ID or multiple IDs separated by commas (e.g., 123456 or 123456,789012,345678). |

## Output ports

### Port `out`

| Field | Type | Description |
| --- | --- | --- |
| Success (`success`) | boolean | - |
| List ID (`listId`) | string | - |
| Company IDs (`companyIds`) | array | - |
| Count (`count`) | number | - |
| Message (`message`) | string | - |
| API Version (`apiVersion`) | string | - |

## Full metadata (component.json)

```json
{
  "name": "appmixer.hubspot.crm.AddCompanyToList",
  "author": "Appmixer <info@appmixer.com>",
  "icon": "(data URI omitted)",
  "description": "Add one or more companies to a HubSpot static list.",
  "version": "1.0.0",
  "private": false,
  "auth": {
    "service": "appmixer:hubspot"
  },
  "quota": {
    "manager": "appmixer:hubspot",
    "resources": "requests",
    "scope": {
      "userId": "{{userId}}"
    }
  },
  "inPorts": [
    {
      "name": "in",
      "schema": {
        "type": "object",
        "properties": {
          "listId": {
            "type": "string"
          },
          "companyIds": {
            "type": "string"
          }
        },
        "required": [
          "listId",
          "companyIds"
        ]
      },
      "inspector": {
        "inputs": {
          "listId": {
            "type": "text",
            "label": "List ID",
            "tooltip": "The HubSpot static list ID to add companies to.",
            "index": 1
          },
          "companyIds": {
            "type": "text",
            "label": "Company IDs",
            "tooltip": "Single company ID or multiple IDs separated by commas (e.g., 123456 or 123456,789012,345678).",
            "index": 2
          }
        }
      }
    }
  ],
  "outPorts": [
    {
      "name": "out",
      "options": [
        {
          "label": "Success",
          "value": "success",
          "schema": {
            "type": "boolean",
            "example": true
          }
        },
        {
          "label": "List ID",
          "value": "listId",
          "schema": {
            "type": "string",
            "example": "12345"
          }
        },
        {
          "label": "Company IDs",
          "value": "companyIds",
          "schema": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "987654321",
              "987654322"
            ]
          }
        },
        {
          "label": "Count",
          "value": "count",
          "schema": {
            "type": "number",
            "example": 2
          }
        },
        {
          "label": "Message",
          "value": "message",
          "schema": {
            "type": "string",
            "example": "Companies added to list successfully"
          }
        },
        {
          "label": "API Version",
          "value": "apiVersion",
          "schema": {
            "type": "string",
            "example": "v3"
          }
        }
      ]
    }
  ]
}
```
