# st.ignoreInvitation

Ignore an incoming connection, company-follow, or newsletter-subscription invitation.

This action ignores an incoming invitation from the LinkedIn invitation manager. It supports connection requests, company-follow invitations, and newsletter-subscription invitations.

## Constraints

> ⏺️ **Root Start:** allowed when `invitationType` and its matching target URL are provided.

> ⬆️ **Parent Actions:** N/A.

> ⬇️ **Child Actions:** N/A.

## Parameters

```json
{
  "actionType": "st.ignoreInvitation",
  "label": "invitation1",
  "invitationType": "connect",
  "personUrl": "https://www.linkedin.com/in/person1"
}
```

- `label` (optional) – custom label for tracking this action in workflow completion.
- `invitationType` (required) – one of:
  - `connect` – requires `personUrl`.
  - `companyFollow` – requires `companyUrl`.
  - `newsletterSubscribe` – requires `newsletterUrl`.
- `personUrl` – [public or hashed](/faq/what-are-hashed-url-and-public-url) LinkedIn person URL. Allowed only for `connect`.
- `companyUrl` – LinkedIn company page URL. Allowed only for `companyFollow`.
- `newsletterUrl` – LinkedIn newsletter URL. Allowed only for `newsletterSubscribe`.

Provide exactly one target URL: the one required by `invitationType`.

## Result options

1. **Successful invitation dismissal:**

```json
{
  "actionType": "st.ignoreInvitation",
  "label": "invitation1",
  "success": true
}
```

- `label` – included only if specified in the action parameters.

2. **No matching invitation:**

```json
{
  "actionType": "st.ignoreInvitation",
  "label": "invitation1",
  "success": false,
  "error": {
    "type": "noPendingRequest",
    "message": "There is no matching pending incoming invitation to ignore."
  }
}
```

- `error.type` is `noPendingRequest` when no invitation matches the supplied type and target URL.
