> ## 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 Schedule: Inputs, Cost & CLI

> Updating campaign send schedule configuration. 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_schedule:{"campaign_id":"{{campaign_id}}","timezone":"{{timezone}}","days_of_the_week":"{{days_of_the_week}}","start_hour":"{{start_hour}}","end_hour":"{{end_hour}}","max_new_leads_per_day":"{{max_new_leads_per_day}}"}' --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.timezone`              | `string`            | Yes      |         | IANA time zone used for the campaign schedule.                          |
| `payload.days_of_the_week`      | `array`             | Yes      |         | Day numbers for campaign send schedule (0=Sun, 6=Sat).                  |
| `payload.start_hour`            | `string`            | Yes      |         | Start hour in HH:MM format.                                             |
| `payload.end_hour`              | `string`            | Yes      |         | End hour in HH:MM format.                                               |
| `payload.min_time_btw_emails`   | `integer`           | No       |         | Minimum minutes between campaign emails.                                |
| `payload.min_time_btwn_emails`  | `integer`           | No       |         | Legacy alias for min\_time\_btw\_emails.                                |
| `payload.max_new_leads_per_day` | `integer`           | Yes      |         | Maximum new leads accepted per day. Required by the live Smartlead API. |
| `payload.schedule_start_time`   | `string`            | No       |         | ISO schedule start time.                                                |

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

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Smartlead campaign schedule 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
          }
        ]
      },
      "timezone": {
        "type": "string",
        "description": "IANA time zone used for the campaign schedule.",
        "minLength": 1
      },
      "days_of_the_week": {
        "type": "array",
        "description": "Day numbers for campaign send schedule (0=Sun, 6=Sat).",
        "minItems": 1,
        "items": {
          "type": "integer",
          "minimum": 0,
          "maximum": 6
        }
      },
      "start_hour": {
        "type": "string",
        "description": "Start hour in HH:MM format.",
        "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$"
      },
      "end_hour": {
        "type": "string",
        "description": "End hour in HH:MM format.",
        "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$"
      },
      "min_time_btw_emails": {
        "type": "integer",
        "description": "Minimum minutes between campaign emails.",
        "minimum": 1
      },
      "min_time_btwn_emails": {
        "type": "integer",
        "description": "Legacy alias for min_time_btw_emails.",
        "minimum": 1
      },
      "max_new_leads_per_day": {
        "type": "integer",
        "description": "Maximum new leads accepted per day. Required by the live Smartlead API.",
        "minimum": 1
      },
      "schedule_start_time": {
        "type": "string",
        "description": "ISO schedule start time."
      }
    },
    "required": [
      "campaign_id",
      "timezone",
      "days_of_the_week",
      "start_hour",
      "end_hour",
      "max_new_leads_per_day"
    ],
    "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 schedule payload."
  }
  ```
</details>

## Advanced: Direct CLI

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

```bash theme={null}
deepline tools execute smartlead_update_campaign_schedule --payload '{
  "campaign_id": "string",
  "timezone": "string",
  "days_of_the_week": "array",
  "start_hour": "string",
  "end_hour": "string",
  "max_new_leads_per_day": "integer"
}' --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`.
