Skip to main content

Run in Enrichment Spreadsheet

Use this function as a column step in deepline enrich.
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
Map payload values to spreadsheet columns with {{column_name}} placeholders.

Required Fields

NameTypeRequiredDefaultDescription
payload.campaign_idstring | integerYesSmartlead campaign identifier (number or positive numeric string).
payload.timezonestringYesIANA time zone used for the campaign schedule.
payload.days_of_the_weekarrayYesDay numbers for campaign send schedule (0=Sun, 6=Sat).
payload.start_hourstringYesStart hour in HH:MM format.
payload.end_hourstringYesEnd hour in HH:MM format.
payload.max_new_leads_per_dayintegerYesMaximum new leads accepted per day. Required by the live Smartlead API.

Advanced: Direct CLI

Use direct execution for single payload debugging.
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

FlagDescription
--jsonPrint machine-readable output.
--waitWait for terminal provider status when supported.
--debugEnable wait mode with additional status/log output.
--wait-timeout SECONDSMax seconds to wait in wait mode.
--poll-interval SECONDSPolling interval in seconds during wait mode.
--timeout SECONDSRequest timeout in seconds.
--connect-timeout SECONDSConnection 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.