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

# Add Prospects to Campaign

- Component: `appmixer.woodpecker.core.AddProspectsToCampaign`
- Kind: Action
- Version: 1.0.0
- Visibility: Public
- Connector: [appmixer.woodpecker 1.1.2](https://connectors.appmixer.com/connector/appmixer.woodpecker/1.1.2.md)
- Component page: <https://connectors.appmixer.com/connector/appmixer.woodpecker/1.1.2/component/appmixer.woodpecker.core.AddProspectsToCampaign>

Add prospects to a campaign in your Woodpecker account.

## Input ports

### Port `in`

| Field | Type | Description |
| --- | --- | --- |
| Campaign ID (`campaignId`) | text | - |
| Prospects (JSON array) (`prospects`) | textarea | A JSON array of prospect objects, each with at least an email. |
| Force Upsert (`force`) | toggle | If enabled, existing prospects are updated. |

## Output ports

### Port `out`

| Field | Type | Description |
| --- | --- | --- |
| Status (`status`) | string | - |
| Prospects Added (`prospects_added`) | integer | - |

## Full metadata (component.json)

```json
{
  "name": "appmixer.woodpecker.core.AddProspectsToCampaign",
  "label": "Add Prospects to Campaign",
  "description": "Add prospects to a campaign in your Woodpecker account.",
  "author": "Appmixer <info@appmixer.com>",
  "version": "1.0.0",
  "auth": {
    "service": "appmixer:woodpecker"
  },
  "inPorts": [
    {
      "name": "in",
      "schema": {
        "type": "object",
        "required": [
          "campaignId",
          "prospects"
        ],
        "properties": {
          "campaignId": {
            "type": "string"
          },
          "prospects": {
            "type": "string"
          },
          "force": {
            "type": "boolean"
          }
        }
      },
      "inspector": {
        "inputs": {
          "campaignId": {
            "type": "text",
            "label": "Campaign ID",
            "index": 1
          },
          "prospects": {
            "type": "textarea",
            "label": "Prospects (JSON array)",
            "index": 2,
            "tooltip": "A JSON array of prospect objects, each with at least an email."
          },
          "force": {
            "type": "toggle",
            "label": "Force Upsert",
            "index": 3,
            "tooltip": "If enabled, existing prospects are updated."
          }
        }
      }
    }
  ],
  "outPorts": [
    {
      "name": "out",
      "schema": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "title": "Status",
            "example": "OK"
          },
          "prospects_added": {
            "type": "integer",
            "title": "Prospects Added",
            "example": 25
          }
        }
      }
    }
  ],
  "icon": "(data URI omitted)"
}
```
