| POST | /profile/merge/{SubscriptionId} |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class ProfileMergePost
{
public ProfileMergeContainer profileMergeContainer = null;
public String subscriptionId = null;
public ProfileMergeContainer getProfileMergeContainer() { return profileMergeContainer; }
public ProfileMergePost setProfileMergeContainer(ProfileMergeContainer value) { this.profileMergeContainer = value; return this; }
public String getSubscriptionId() { return subscriptionId; }
public ProfileMergePost setSubscriptionId(String value) { this.subscriptionId = value; return this; }
}
public static class ProfileMergeContainer extends ProfilePurgeContainer
{
public String winningProfileId = null;
public String transferredCendynID = null;
public String getWinningProfileId() { return winningProfileId; }
public ProfileMergeContainer setWinningProfileId(String value) { this.winningProfileId = value; return this; }
public String getTransferredCendynID() { return transferredCendynID; }
public ProfileMergeContainer setTransferredCendynID(String value) { this.transferredCendynID = 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 .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /profile/merge/{SubscriptionId} HTTP/1.1
Host: cert.cendyn.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<ProfileMergePost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CenResSS.ServiceModel">
<ProfileMergeContainer>
<CendynPropertyID>String</CendynPropertyID>
<ImportSource>String</ImportSource>
<ImportSourceId>String</ImportSourceId>
<RetiredProfileId>String</RetiredProfileId>
<SourceId>Other</SourceId>
<TransactionDate>0001-01-01T00:00:00</TransactionDate>
<TransferredCendynID>String</TransferredCendynID>
<WinningProfileId>String</WinningProfileId>
</ProfileMergeContainer>
<SubscriptionId>String</SubscriptionId>
</ProfileMergePost>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <Response xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CenResSS.ServiceModel"> <ErrorCount>0</ErrorCount> <RecordCount>0</RecordCount> <StatusCode>String</StatusCode> </Response>