Update an existing campaign’s settings, content, or scheduling using the AutoSend API.
curl --request PATCH \
--url 'https://api.autosend.com/v1/campaigns/60d5ec49f1b2c72d9c8b4567' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "Spring Sale Newsletter - Final",
"subject": "Last chance: Spring Sale ends tonight!",
"previewText": "Up to 50% off — ends at midnight",
"trackingClick": true,
"trackingOpen": true
}'
{
"success": true,
"data": {
"id": "60d5ec49f1b2c72d9c8b4567",
"name": "Spring Sale Newsletter - Final",
"subject": "Last chance: Spring Sale ends tonight!",
"previewText": "Up to 50% off — ends at midnight",
"status": "draft",
"sendMode": "immediate",
"trackingClick": true,
"trackingOpen": true,
"createdAt": "2026-03-01T10:00:00.000Z",
"updatedAt": "2026-03-15T14:30:00.000Z"
}
}
curl --request PATCH \
--url 'https://api.autosend.com/v1/campaigns/60d5ec49f1b2c72d9c8b4567' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "Spring Sale Newsletter - Final",
"subject": "Last chance: Spring Sale ends tonight!",
"previewText": "Up to 50% off — ends at midnight",
"trackingClick": true,
"trackingOpen": true
}'
{
"success": true,
"data": {
"id": "60d5ec49f1b2c72d9c8b4567",
"name": "Spring Sale Newsletter - Final",
"subject": "Last chance: Spring Sale ends tonight!",
"previewText": "Up to 50% off — ends at midnight",
"status": "draft",
"sendMode": "immediate",
"trackingClick": true,
"trackingOpen": true,
"createdAt": "2026-03-01T10:00:00.000Z",
"updatedAt": "2026-03-15T14:30:00.000Z"
}
}
<token>, where <token> is your auth token.templateId or htmlTemplate is required.htmlTemplate or templateId is required. If both are provided, htmlTemplate takes precedence and the template referenced by templateId will be updated with the provided HTML content.true, triggers sending immediately.true, send to all contacts in the global list.true, publishes and finalizes the campaign.immediate, scheduled, gradual.fixed, 1.25x, 1.5x, 1.75x, 2x.1.Show data
immediate, scheduled, or gradual.Bearer authentication header of the form Bearer
Id of the campaign.
Display name of the campaign.
1 - 200Email subject line.
1 - 998Preview text shown in email clients.
200Show child attributes
Id of a saved sender identity.
Reply-to email address.
ID of the email template to use.
List/segment IDs to send the campaign to.
List/segment IDs to exclude from sending.
ID of the unsubscribe group.
If true, send the campaign immediately.
ISO 8601 date-time to schedule the campaign.
If true, send to the entire global contact list.
If true, publish/finalize the campaign.
Enable or disable click tracking.
Enable or disable open tracking.
How the campaign is delivered.
immediate, scheduled, gradual Gradual send growth strategy (used when sendMode is 'gradual').
fixed, 1.25x, 1.5x, 1.75x, 2x Number of emails to send per day in gradual mode.
x >= 1Timezone string for scheduled sending.
curl --request PATCH \
--url 'https://api.autosend.com/v1/campaigns/60d5ec49f1b2c72d9c8b4567' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "Spring Sale Newsletter - Final",
"subject": "Last chance: Spring Sale ends tonight!",
"previewText": "Up to 50% off — ends at midnight",
"trackingClick": true,
"trackingOpen": true
}'
{
"success": true,
"data": {
"id": "60d5ec49f1b2c72d9c8b4567",
"name": "Spring Sale Newsletter - Final",
"subject": "Last chance: Spring Sale ends tonight!",
"previewText": "Up to 50% off — ends at midnight",
"status": "draft",
"sendMode": "immediate",
"trackingClick": true,
"trackingOpen": true,
"createdAt": "2026-03-01T10:00:00.000Z",
"updatedAt": "2026-03-15T14:30:00.000Z"
}
}