> 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 or Update Prospect

- Component: `appmixer.woodpecker.core.AddOrUpdateProspect`
- 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.AddOrUpdateProspect>

Add a new prospect or update an existing one in your Woodpecker account.

## Input ports

### Port `in`

| Field | Type | Description |
| --- | --- | --- |
| Email (`email`) | text | - |
| First Name (`firstName`) | text | - |
| Last Name (`lastName`) | text | - |
| Company (`company`) | text | - |
| Title (`title`) | text | - |

## Output ports

### Port `out`

| Field | Type | Description |
| --- | --- | --- |
| Prospect ID (`id`) | integer | - |
| Email (`email`) | string | - |
| First Name (`first_name`) | string | - |
| Last Name (`last_name`) | string | - |
| Company (`company`) | string | - |
| Status (`status`) | string | - |

## Full metadata (component.json)

```json
{
  "name": "appmixer.woodpecker.core.AddOrUpdateProspect",
  "label": "Add or Update Prospect",
  "description": "Add a new prospect or update an existing one in your Woodpecker account.",
  "author": "Appmixer <info@appmixer.com>",
  "version": "1.0.0",
  "auth": {
    "service": "appmixer:woodpecker"
  },
  "inPorts": [
    {
      "name": "in",
      "schema": {
        "type": "object",
        "required": [
          "email"
        ],
        "properties": {
          "email": {
            "type": "string"
          },
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "company": {
            "type": "string"
          },
          "title": {
            "type": "string"
          }
        }
      },
      "inspector": {
        "inputs": {
          "email": {
            "type": "text",
            "label": "Email",
            "index": 1
          },
          "firstName": {
            "type": "text",
            "label": "First Name",
            "index": 2
          },
          "lastName": {
            "type": "text",
            "label": "Last Name",
            "index": 3
          },
          "company": {
            "type": "text",
            "label": "Company",
            "index": 4
          },
          "title": {
            "type": "text",
            "label": "Title",
            "index": 5
          }
        }
      }
    }
  ],
  "outPorts": [
    {
      "name": "out",
      "schema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "title": "Prospect ID",
            "example": 987654
          },
          "email": {
            "type": "string",
            "title": "Email",
            "example": "john@acme.com"
          },
          "first_name": {
            "type": "string",
            "title": "First Name",
            "example": "John"
          },
          "last_name": {
            "type": "string",
            "title": "Last Name",
            "example": "Smith"
          },
          "company": {
            "type": "string",
            "title": "Company",
            "example": "Acme Inc."
          },
          "status": {
            "type": "string",
            "title": "Status",
            "example": "ACTIVE"
          }
        }
      }
    }
  ],
  "icon": "(data URI omitted)"
}
```
