Parameters

campaign
dictionary
name
string
Description
Updated name for the campaign.
subject
string
Description
Updated subject line.
content
dictionary
Description
Updated content payload.
capping_per_minute
number
Description
Updated max recipient rows per minute (1-100000).
channel
string
Description
Delivery channel: `email`, `push`, or `sms`.
audience_type
string
Description
Audience targeting mode: `all_users`, `user_attributes`, `audience_ids`, or `custom`.
audience_config
dictionary
Description
Updated audience configuration.
schedule_type
string
Description
`immediate` or `scheduled`.
scheduled_at
string
Description
Updated scheduled dispatch ISO timestamp.
status
string
Description
Updated status: `draft`, `active`, or `scheduled`.
PUT/v1/campaigns/{{campaign_id}}
curl https://api.tradly.app/v1/campaigns/{{campaign_id}} \
  -H "Authorization: Bearer YOUR_PUBLISHABLE_OR_SECRET_KEY" \
  -H "Content-Type: application/json" \
  -X PUT \
  -d '{
  "campaign": {
    "name": "Summer Promotion Updated",
    "subject": "Updated: Summer Sale is Live!",
    "content": {
      "html": "<h1>Summer Sale!</h1><p>Enjoy 25% off all items today.</p>",
      "text": "Summer Sale! Enjoy 25% off all items today."
    },
    "capping_per_minute": 1000
  }
}'
RESPONSE
{
  "status": true,
  "data": {
    "campaign": {
      "id": 101
    }
  }
}