API referenceCampaigns
Update Campaign
PUT
Update a campaign
Required scope: campaigns:write
header
AuthorizationBearer <luso8_sk_live_<40 characters>>A workspace API key, sent as Authorization: Bearer <key>. Create keys in Settings → Developers → API keys.
campaign_id*Campaign Idapplication/json- body
Schema for updating a campaign
name?string|nulldescription?string|nullcampaign_type?|nullstatus?|nulltarget_audience?|nullexclude_criteria?|nullagent_id?string|nullstart_date?|nullend_date?|nulltimezone?string|nulllanguage?|nullsend_windows?array<>|nulltrigger_type?|nulltrigger_config?|nullgoals?|nullconversion_event?string|nullsettings?|nulltags?array<string>|nulllist_ids?array<string>|nullSuccessful Response
application/json- response
Schema for campaign response
name*Namedescription?string|nullcampaign_type?CampaignTypeDefault
"outbound"Value in
"outbound""nurture""reengagement""onboarding""upsell""event""sequence""custom"target_audience?|nullexclude_criteria?|nullagent_id?string|nullstart_date?|nullend_date?|nulltimezone?TimezoneDefault
"UTC"language?CampaignLanguageDefault
"en"Value in
"en""ny""sw"send_windows?array<>|nulltrigger_type?TriggerTypeDefault
"manual"Value in
"manual""scheduled""event""intent""list_added""form_submit""webhook""api"trigger_config?|nullgoals?|nullconversion_event?string|nullsettings?|nulltags?array<string>|nullid*Idorganization_id*Organization Idcreated_by*Created Bystatus?CampaignStatusDefault
"draft"Value in
"draft""scheduled""active""paused""completed""archived"copy_generation_status?CopyGenerationStatusCampaign-level state for the async generate-copy job.
Default
"idle"Value in
"idle""running""complete""failed"copy_generation_job_id?string|nulltotal_contacts?Total ContactsDefault
0contacts_completed?Contacts CompletedDefault
0contacts_in_progress?Contacts In ProgressDefault
0total_sent?Total SentDefault
0total_delivered?Total DeliveredDefault
0total_opened?Total OpenedDefault
0total_clicked?Total ClickedDefault
0total_replied?Total RepliedDefault
0total_converted?Total ConvertedDefault
0total_bounced?Total BouncedDefault
0total_unsubscribed?Total UnsubscribedDefault
0created_at*Created AtFormat
date-timeupdated_at?|nulllaunched_at?|nullcompleted_at?|nullcurl -X PUT 'https://api.luso8.rexplore.ai/api/v1/campaigns/string' \ -H 'Content-Type: application/json' \ -d '{}'Example Response
{ "name": "string", "description": "string", "campaign_type": "outbound", "target_audience": {}, "exclude_criteria": {}, "agent_id": "string", "start_date": "2019-08-24T14:15:22Z", "end_date": "2019-08-24T14:15:22Z", "timezone": "UTC", "language": "en", "send_windows": [ { "days": [ 0 ], "start": "string", "end": "string" } ], "trigger_type": "manual", "trigger_config": {}, "goals": {}, "conversion_event": "string", "settings": {}, "tags": [ "string" ], "id": "string", "organization_id": "string", "created_by": "string", "status": "draft", "copy_generation_status": "idle", "copy_generation_job_id": "string", "total_contacts": 0, "contacts_completed": 0, "contacts_in_progress": 0, "total_sent": 0, "total_delivered": 0, "total_opened": 0, "total_clicked": 0, "total_replied": 0, "total_converted": 0, "total_bounced": 0, "total_unsubscribed": 0, "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z", "launched_at": "2019-08-24T14:15:22Z", "completed_at": "2019-08-24T14:15:22Z"}