| POST | /profile/purge/{SubscriptionId} |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class ProfilePurgePost
{
public ProfilePurgeContainer profilePurgeContainer = null;
public String subscriptionId = null;
public ProfilePurgeContainer getProfilePurgeContainer() { return profilePurgeContainer; }
public ProfilePurgePost setProfilePurgeContainer(ProfilePurgeContainer value) { this.profilePurgeContainer = value; return this; }
public String getSubscriptionId() { return subscriptionId; }
public ProfilePurgePost setSubscriptionId(String value) { this.subscriptionId = value; return this; }
}
public static class ProfilePurgeContainer
{
public Date transactionDate = null;
public String retiredProfileId = null;
public ProfileMergePurgeSource sourceId = null;
public String importSource = null;
public String importSourceId = null;
public String cendynPropertyID = null;
public Date getTransactionDate() { return transactionDate; }
public ProfilePurgeContainer setTransactionDate(Date value) { this.transactionDate = value; return this; }
public String getRetiredProfileId() { return retiredProfileId; }
public ProfilePurgeContainer setRetiredProfileId(String value) { this.retiredProfileId = value; return this; }
public ProfileMergePurgeSource getSourceId() { return sourceId; }
public ProfilePurgeContainer setSourceId(ProfileMergePurgeSource value) { this.sourceId = value; return this; }
public String getImportSource() { return importSource; }
public ProfilePurgeContainer setImportSource(String value) { this.importSource = value; return this; }
public String getImportSourceId() { return importSourceId; }
public ProfilePurgeContainer setImportSourceId(String value) { this.importSourceId = value; return this; }
public String getCendynPropertyID() { return cendynPropertyID; }
public ProfilePurgeContainer setCendynPropertyID(String value) { this.cendynPropertyID = value; return this; }
}
public static enum ProfileMergePurgeSource
{
Other,
Messaging,
DirectDBExtract,
ReportImport;
}
public static class Response
{
public String statusCode = null;
public Integer recordCount = null;
public Integer errorCount = null;
public String getStatusCode() { return statusCode; }
public Response setStatusCode(String value) { this.statusCode = value; return this; }
public Integer getRecordCount() { return recordCount; }
public Response setRecordCount(Integer value) { this.recordCount = value; return this; }
public Integer getErrorCount() { return errorCount; }
public Response setErrorCount(Integer value) { this.errorCount = value; return this; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /profile/purge/{SubscriptionId} HTTP/1.1
Host: cert.cendyn.com
Accept: application/json
Content-Type: application/json
Content-Length: length
{"profilePurgeContainer":{"transactionDate":"0001-01-01T00:00:00.0000000","retiredProfileId":"String","sourceId":"Other","importSource":"String","importSourceId":"String","cendynPropertyID":"String"},"subscriptionId":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"statusCode":"String","recordCount":0,"errorCount":0}