Method :POST

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

Create/ Update registration event campaign (not publish).

Request Information

URI Parameters

None.

Body Parameters

SaveRegistrationEventCampaignBindingeModel
NameDescriptionTypeAdditional information
Auth

Token

AuthorizationTokenBindingModel

Required

ID

Campaign ID. Set NULL for creating new campaign

integer

None.

CampaignSettings

RegistrationEventCampaignSettingsStruct

Required

CampaignDetails

CampaignDetailsStruct

Required

Request Formats

application/json, text/json

Sample:
{
  "Auth": {
    "Token": "d18a36f6-3000-4843-b926-b10b64d1cfe4"
  },
  "ID": 1,
  "CampaignSettings": {
    "SendOffsetInDays": 1,
    "FormId": 2,
    "CampaignEventType": 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
}