Update a campaign.
Only certain fields can be updated, and some fields cannot be changed after the campaign is launched.
Args: campaign_id: Campaign ID request: Update request current_user: Authenticated user information service: Campaign service instance
Returns: Updated campaign response
Documentation Index
Fetch the complete documentation index at: https://bavlio.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Request model for updating a campaign.
1 - 25510001 <= x <= 1000060 <= x <= 3600Campaign launch type values.
immediate, scheduled Campaign-level personalization prompt override. Send explicit null to clear the existing value (sets the column to NULL); omit the field entirely to leave it unchanged. Empty string is rejected by the 100-char min-length guard — use null to clear.
100 - 5000Policy applied when scheduled launch fires without playground review.
launch_default, hold, cancel ISO timestamp of when the user dismissed the playground discovery banner on the campaign detail page. Send explicit null to clear the dismissal (banner re-appears); omit to leave unchanged. Narrow-PATCH surface — AC16 requires that a dismissal write must not clobber system_prompt or unreviewed_launch_policy on the same row, which the model_fields_set PATCH semantics enforce.
Successful Response
Response model for campaign.
Unique campaign identifier
Owner user ID
Associated dataset ID
Campaign name
Campaign type (email, linkedin, mixed)
Current campaign status
draft, launching, scheduled, active, draining, paused, completed, failed Launch type
immediate, scheduled Max actions per day
Daily sending window start
Daily sending window end
Min seconds between actions
Timezone for sending window
Steps configuration
Days of week to send
Creation timestamp
Last update timestamp
Campaign description
Scheduled start date
Bavimail alias IDs
Connected account for LinkedIn
Total leads in campaign
Leads not in pending/active status
ARQ job ID for background launch
When launch was requested
Error message if launch failed
Campaign-level personalization prompt override (migration 108).
Policy for scheduled launch without playground review (migration 108).
launch_default, hold, cancel Reason the campaign is paused, e.g. 'pending_personalization_review' (migration 108).
When the owner dismissed the playground discovery banner (migration 108).