Update campaign configuration
Modify campaign settings, leads, inboxes, email content, or sequences.
import requests
campaign_id = "550e8400-e29b-41d4-a716-446655440000"
response = requests.put(
f"https://api.coldsend.io/api/public/v1/campaigns/{campaign_id}",
headers={"X-API-Key": "your-api-key"},
json={
"current_step": 4,
"variants": [{
"variant_name": "A",
"subject_template": "Quick question, {{first_name}}",
"body_template": "Hi {{first_name}},...",
"distribution_percent": 100
}]
}
)
API key with format cs_live_xxx
Request schema for updating campaign in steps 2-5.
8 - 2551 <= x <= 1001001 - 7 elements0 <= x <= 231 <= x <= 24Column mapping from CSV to lead fields
List of inbox IDs to use for this campaign
1Email variants for A/B testing the initial email. At least one variant required.
Follow-up email sequences with their own variants
1 <= x <= 5Campaign updated successfully
Response for campaign update operations.
Updated campaign ID
Current campaign creation step
Campaign status
Last update timestamp
Inbox validation results (only included when updating inbox_ids)