| POST | /profile/purge/{SubscriptionId} |
|---|
import java.math.*
import java.util.*
import net.servicestack.client.*
open class ProfilePurgePost
{
var profilePurgeContainer:ProfilePurgeContainer? = null
var subscriptionId:String? = null
}
open class ProfilePurgeContainer
{
var transactionDate:Date? = null
var retiredProfileId:String? = null
var sourceId:ProfileMergePurgeSource? = null
var importSource:String? = null
var importSourceId:String? = null
var cendynPropertyID:String? = null
}
enum class ProfileMergePurgeSource
{
Other,
Messaging,
DirectDBExtract,
ReportImport,
}
open class Response
{
var statusCode:String? = null
var recordCount:Int? = null
var errorCount:Int? = null
}
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}