| POST | /profile/merge/{SubscriptionId} |
|---|
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports CenResSS.ServiceModel
Imports Cendyn.CenRes.DataLib.Models
Namespace Global
Namespace Cendyn.CenRes.DataLib.Models
Public Partial Class ProfileMergeContainer
Inherits ProfilePurgeContainer
Public Overridable Property WinningProfileId As String
Public Overridable Property TransferredCendynID As String
End Class
Public Enum ProfileMergePurgeSource
Other
Messaging
DirectDBExtract
ReportImport
End Enum
Public Partial Class ProfilePurgeContainer
Public Overridable Property TransactionDate As Date
Public Overridable Property RetiredProfileId As String
Public Overridable Property SourceId As ProfileMergePurgeSource
Public Overridable Property ImportSource As String
Public Overridable Property ImportSourceId As String
Public Overridable Property CendynPropertyID As String
End Class
Public Partial Class Response
Public Overridable Property StatusCode As String
Public Overridable Property RecordCount As Integer
Public Overridable Property ErrorCount As Integer
End Class
End Namespace
Namespace CenResSS.ServiceModel
Public Partial Class ProfileMergePost
Public Overridable Property ProfileMergeContainer As ProfileMergeContainer
Public Overridable Property SubscriptionId As String
End Class
End Namespace
End Namespace
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/merge/{SubscriptionId} HTTP/1.1
Host: cert.cendyn.com
Accept: application/json
Content-Type: application/json
Content-Length: length
{"profileMergeContainer":{"winningProfileId":"String","transferredCendynID":"String","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}