> ## Documentation Index
> Fetch the complete documentation index at: https://deepline.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Smartlead Update Campaign Settings: Inputs, Cost & CLI

> Updating campaign-level tracking and stopping behavior. Includes inputs, outputs, pricing notes, Deepline CLI examples, and GTM automation guidance.

## Run in Enrichment Spreadsheet

<Info>
  Use this function as a column step in `deepline enrich`.
</Info>

```bash theme={null}
deepline enrich --input leads.csv --output leads.enriched.csv --with 'result=smartlead_update_campaign_settings:{"campaign_id":"{{campaign_id}}"}' --json
```

<Tip>
  Map payload values to spreadsheet columns with `{{column_name}}` placeholders.
</Tip>

## Input Schema

| Name                             | Type                                                                                            | Required | Default | Description                                                          |
| -------------------------------- | ----------------------------------------------------------------------------------------------- | -------- | ------- | -------------------------------------------------------------------- |
| `payload.campaign_id`            | `string \| integer`                                                                             | Yes      |         | Smartlead campaign identifier (number or positive numeric string).   |
| `payload.track_settings`         | `array \| "DONT_TRACK_EMAIL_OPEN" \| "DONT_TRACK_LINK_CLICK" \| "DONT_TRACK_REPLY_TO_AN_EMAIL"` | No       |         | Campaign tracking mode — single value or array of tracking opt-outs. |
| `payload.stop_lead_settings`     | `"REPLY_TO_AN_EMAIL" \| "CLICK_ON_A_LINK" \| "OPEN_AN_EMAIL"`                                   | No       |         | Lead stop condition.                                                 |
| `payload.unsubscribe_text`       | `string`                                                                                        | No       |         |                                                                      |
| `payload.send_as_plain_text`     | `boolean`                                                                                       | No       |         |                                                                      |
| `payload.follow_up_percentage`   | `number`                                                                                        | No       |         |                                                                      |
| `payload.client_id`              | `integer`                                                                                       | No       |         |                                                                      |
| `payload.enable_ai_esp_matching` | `boolean`                                                                                       | No       |         |                                                                      |

### Allowed values

| Field                        | Allowed values                                                                   |
| ---------------------------- | -------------------------------------------------------------------------------- |
| `payload.track_settings`     | `DONT_TRACK_EMAIL_OPEN`, `DONT_TRACK_LINK_CLICK`, `DONT_TRACK_REPLY_TO_AN_EMAIL` |
| `payload.stop_lead_settings` | `REPLY_TO_AN_EMAIL`, `CLICK_ON_A_LINK`, `OPEN_AN_EMAIL`                          |

<details>
  <summary>Show raw input schema</summary>

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Smartlead campaign general settings input with campaign id.",
    "properties": {
      "campaign_id": {
        "description": "Smartlead campaign identifier (number or positive numeric string).",
        "anyOf": [
          {
            "type": "string",
            "description": "Smartlead campaign identifier (number or positive numeric string).",
            "minLength": 1,
            "pattern": "^\\d+$"
          },
          {
            "type": "integer",
            "description": "Smartlead campaign identifier (number or positive numeric string).",
            "minimum": 1
          }
        ]
      },
      "track_settings": {
        "description": "Campaign tracking mode — single value or array of tracking opt-outs.",
        "anyOf": [
          {
            "type": "array",
            "minItems": 1,
            "items": {
              "type": "string",
              "enum": [
                "DONT_TRACK_EMAIL_OPEN",
                "DONT_TRACK_LINK_CLICK",
                "DONT_TRACK_REPLY_TO_AN_EMAIL"
              ]
            }
          },
          {
            "type": "string",
            "enum": [
              "DONT_TRACK_EMAIL_OPEN",
              "DONT_TRACK_LINK_CLICK",
              "DONT_TRACK_REPLY_TO_AN_EMAIL"
            ]
          }
        ]
      },
      "stop_lead_settings": {
        "type": "string",
        "description": "Lead stop condition.",
        "enum": [
          "REPLY_TO_AN_EMAIL",
          "CLICK_ON_A_LINK",
          "OPEN_AN_EMAIL"
        ]
      },
      "unsubscribe_text": {
        "type": "string"
      },
      "send_as_plain_text": {
        "type": "boolean"
      },
      "follow_up_percentage": {
        "type": "number",
        "minimum": 0,
        "maximum": 100
      },
      "client_id": {
        "type": [
          "integer",
          "null"
        ]
      },
      "enable_ai_esp_matching": {
        "type": "boolean"
      }
    },
    "required": [
      "campaign_id"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output Schema

Output schema is not available yet.

<details>
  <summary>Show raw output schema</summary>

  ### Output JSON Schema

  ```json theme={null}
  {
    "description": "Raw Smartlead campaign settings payload."
  }
  ```
</details>

## Advanced: Direct CLI

<Info>
  Use direct execution for single payload debugging.
</Info>

```bash theme={null}
deepline tools execute smartlead_update_campaign_settings --payload '{
  "campaign_id": "string"
}' --json
```

### CLI flags

| Flag                        | Description                                         |
| --------------------------- | --------------------------------------------------- |
| `--json`                    | Print machine-readable output.                      |
| `--wait`                    | Wait for terminal provider status when supported.   |
| `--debug`                   | Enable wait mode with additional status/log output. |
| `--wait-timeout SECONDS`    | Max seconds to wait in wait mode.                   |
| `--poll-interval SECONDS`   | Polling interval in seconds during wait mode.       |
| `--timeout SECONDS`         | Request timeout in seconds.                         |
| `--connect-timeout SECONDS` | Connection timeout in seconds.                      |

## Cost

* Pricing model: `fixed` (per call).
* Estimated Deepline credits: `0` per pricing unit.
* Provider-native pricing may still exist outside Deepline credit billing.
* Billing mode: `no_bill`.
