Table of Contents

Namespace Mailtrap.EmailCampaigns.Requests

Classes

CreateEmailCampaignRequest

Request object for creating an email campaign.
The request body is sent flat (no envelope). The campaign is always created in the Draft state - scheduling and starting are separate actions.

EmailCampaignTemplateAttributes

Represents the template attributes of an email campaign create/update request - the campaign's subject and design.
The campaign's template is always edited in place and updates are partial: only the sub-fields you provide change; omitted sub-fields keep their current value.

ScheduleEmailCampaignRequest

Request object for scheduling an email campaign - when to start sending it.

UpdateEmailCampaignRequest

Request object for updating an email campaign.
The request body is sent flat (no envelope). All properties are optional - only properties set on the request are sent and changed. Only Draft campaigns can be updated.