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 .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

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

{"CampaignExtended":[{"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-01T00:00:00.0000000","DateCompleted":"0001-01-01T00:00:00.0000000","DateCreated":"0001-01-01T00:00:00.0000000","LandingSiteId":"00000000000000000000000000000000","AllowOnsiteAppt":false,"TimeZone":"String","SentCount":0,"RemainingCount":0,"ApptCount":0,"CancelledApptCount":0,"LastEmail":"0001-01-01T00:00:00.0000000","Status":"String","EmailViewCount":0,"WebsiteVisitCount":0,"DNCCount":0,"DNCBounceCount":0,"Note":"String","TemplateName":"String","LandingSite":"String","IpAddress":"String"}],"SearchText":"String","SearchStart":"0001-01-01T00:00:00.0000000","SearchEnd":"0001-01-01T00:00:00.0000000"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String"}]},"CampaignExtended":[{"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-01T00:00:00.0000000","DateCompleted":"0001-01-01T00:00:00.0000000","DateCreated":"0001-01-01T00:00:00.0000000","LandingSiteId":"00000000000000000000000000000000","AllowOnsiteAppt":false,"TimeZone":"String","SentCount":0,"RemainingCount":0,"ApptCount":0,"CancelledApptCount":0,"LastEmail":"0001-01-01T00:00:00.0000000","Status":"String","EmailViewCount":0,"WebsiteVisitCount":0,"DNCCount":0,"DNCBounceCount":0,"Note":"String","TemplateName":"String","LandingSite":"String","IpAddress":"String"}]}