Method :POST

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

Create/ Update Date event campaign (not publish).

Request Information

URI Parameters

None.

Body Parameters

SaveDateEventCampaignBindingeModel
NameDescriptionTypeAdditional information
Auth

Token

AuthorizationTokenBindingModel

Required

ID

Campaign ID. Set NULL for creating new campaign

integer

None.

CampaignSettings

DateEventCampaignSettingsStruct

Required

CampaignDetails

CampaignDetailsStruct

Required

Request Formats

application/json, text/json

Sample:
{
  "Auth": {
    "Token": "9098760b-d34f-413d-b9d8-6497685b4d71"
  },
  "ID": 1,
  "CampaignSettings": {
    "SendOffsetInDays": 1,
    "SendOffsetDirection": 1,
    "CampaignEventType": 3
  },
  "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
}