Update email campaign
documentedUpdate an email campaign by its hash.
PATCH /campaigns/email/{campaign_hash}Campaignsno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://api.egoiapp.com/campaigns/email/{{$campaign_hash}}" \
-X PATCH \
-H "Apikey: {{E-GOI_API_KEY}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"internal_name": "{{$internal_name}}", "subject": "{{$subject}}", "content": {"body": "{{$body}}", "plain_text": "{{$plain_text}}", "snippet": "{{$snippet}}"}, "sender_id": {{$sender_id}}, "reply_to": {{$reply_to}}, "header_footer": {"id": {{$header_footer_id}}, "header_links": {"forward": {{$header_forward}}, "view_web": {{$header_view_web}}, "unsubscribe": {{$header_unsubscribe}}, "edit": {{$header_edit}}, "social_share": {{$header_social_share}}, "facebook_share": {{$header_facebook_share}}, "twitter_share": {{$header_twitter_share}}}, "footer_links": {"forward": {{$footer_forward}}, "view_web": {{$footer_view_web}}, "unsubscribe": {{$footer_unsubscribe}}, "edit": {{$footer_edit}}, "social_share": {{$footer_social_share}}, "facebook_share": {{$footer_facebook_share}}, "twitter_share": {{$footer_twitter_share}} } }'"