Method :POST

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

Create/ Update approval registration event campaign (not publish).

Request Information

URI Parameters

None.

Body Parameters

SaveApprovalRegistrationEventCampaignBindingeModel
NameDescriptionTypeAdditional information
Auth

Token

AuthorizationTokenBindingModel

Required

ID

Campaign ID. Set NULL for creating new campaign

integer

None.

CampaignSettings

ApprovalRegistrationEventCampaignSettingsStruct

Required

CampaignDetails

CampaignDetailsStruct

Required

Request Formats

application/json, text/json

Sample:
{
  "Auth": {
    "Token": "5bebc6c9-5c9a-48a8-9a4a-28e362e89447"
  },
  "ID": 1,
  "CampaignSettings": {
    "SendOffsetInDays": 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
}