Method :POST

URL: https://apiv1.publicators.com/api/Campaigns/SaveRegularCampaign

Create/ Update regular campaign (not publish).

Request Information

URI Parameters

None.

Body Parameters

SaveRegularCampaignBindingeModel
NameDescriptionTypeAdditional information
Auth

Token

AuthorizationTokenBindingModel

Required

ID

Campaign ID. Set NULL for creating new campaign

integer

None.

CampaignSettings

RegularCampaignSettingsStruct

Required

CampaignDetails

CampaignDetailsStruct

Required

Request Formats

application/json, text/json

Sample:
{
  "Auth": {
    "Token": "9b7b0d89-6fb6-4a03-8854-c38fca51b04e"
  },
  "ID": 1,
  "CampaignSettings": {
    "ListId": 1
  },
  "CampaignDetails": {
    "FromName": "sample string 1",
    "FromEmail": "sample string 2",
    "Address": "sample string 3",
    "Contact": "sample string 4",
    "Subject": "sample string 5",
    "HtmlBodyContent": "sample string 6",
    "IsBrowseLink": true,
    "IsUnsubscribeLink": true,
    "IsClicksTracking": true,
    "IsMailOpenTracking": true,
    "IsForwardLink": true,
    "IsPrintLink": true,
    "GridId": 14
  }
}

Response Information

Resource Description

SaveCampaignViewModel
NameDescriptionTypeAdditional information
ID

Campaign ID

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "ID": 1
}