v1

latestOpenAPI 3.0.3“Commons Clause” License Condition v1.02026-07-17231343.3 KB
campaigns

Update an existing campaign

Update an existing campaign

put/campaigns/{id}

Path parameters

idinteger required

ID of the object

Request body

namestring required

The name of the new campaign, must be unique.

template_namestring required

The name of the template to be used for the campaign content.

Example request

{
  "name": "January Newsletter",
  "template_name": "HelloWorld"
}

Response

OK

idinteger

The ID of the resource.

created_atstring date-time

The date and time when the resource was created.

updated_atstring date-time

The date and time when the resource was last updated.

namestring

The name of the campaign.

status'draft' | 'scheduled' | 'sending' | 'sent'

The campaign's status.

started_atstring date-time

The date and time when the campaign was started.

completed_atstring date-time

The date and time when the campaign was completed (the e-mail has been sent to all of the subscribers).

Example response

{
  "id": 111,
  "name": "January Newsletter",
  "status": "draft",
  "template": {
    "id": 111,
    "name": "Welcome",
    "subject_part": "Welcome to Mailbadger {{name}}!"
  }
}