Pera ServiceStack

<back to all web services

CampaignExtendedSearchRequest

The following routes are available for this service:
GET,OPTIONS/v1/CampaignExtended/Search
GET,OPTIONS/v1/CampaignExtended/Search/{SearchText}
GET,OPTIONS/v1/CampaignExtended/Search/{SearchStart}/{SearchEnd}
GET,OPTIONS/v1/CampaignExtended/Search/{SearchText}/{SearchStart}/{SearchEnd}

To override the Content-type in your clients HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /csv/reply/CampaignExtendedSearchRequest HTTP/1.1 
Host: api2.publicemployeeretirementassistance.com 
Content-Type: text/csv
Content-Length: length

CampaignExtended,SearchText,SearchStart,SearchEnd
"[{CampaignId:0,CampaignName:String,CampaignTypeId:0,ProductTypeId:0,ListId:0,TemplateId:0,FromEmail:String,EmailCount:0,DomainId:0,SleepAfter:0,Paused:False,DateStarted:0001-01-01,DateCompleted:0001-01-01,DateCreated:0001-01-01,LandingSiteId:00000000000000000000000000000000,AllowOnsiteAppt:False,TimeZone:String,SentCount:0,RemainingCount:0,ApptCount:0,CancelledApptCount:0,LastEmail:0001-01-01,Status:String,EmailViewCount:0,WebsiteVisitCount:0,DNCCount:0,DNCBounceCount:0,Note:String,TemplateName:String,LandingSite:String,IpAddress:String}]",String,0001-01-01,0001-01-01

HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

ResponseStatus,CampaignExtended
"{ErrorCode:String,Message:String,StackTrace:String,Errors:[{ErrorCode:String,FieldName:String,Message:String}]}","[{CampaignId:0,CampaignName:String,CampaignTypeId:0,ProductTypeId:0,ListId:0,TemplateId:0,FromEmail:String,EmailCount:0,DomainId:0,SleepAfter:0,Paused:False,DateStarted:0001-01-01,DateCompleted:0001-01-01,DateCreated:0001-01-01,LandingSiteId:00000000000000000000000000000000,AllowOnsiteAppt:False,TimeZone:String,SentCount:0,RemainingCount:0,ApptCount:0,CancelledApptCount:0,LastEmail:0001-01-01,Status:String,EmailViewCount:0,WebsiteVisitCount:0,DNCCount:0,DNCBounceCount:0,Note:String,TemplateName:String,LandingSite:String,IpAddress:String}]"