CenResService

<back to all web services

ProfilePurgePost

The following routes are available for this service:
POST/profile/purge/{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 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 ProfilePurgePost
            Public Overridable Property ProfilePurgeContainer As ProfilePurgeContainer
            Public Overridable Property SubscriptionId As String
        End Class
    End Namespace
End Namespace

VB.NET ProfilePurgePost DTOs

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

HTTP + JSON

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}