Trendsic Platform Service

<back to all web services

CampaignEmailAuditRequest

Requires Authentication
Requires any of the roles:Agent, Administrator, Agent, Administrator, Agent, Administrator, Agent, Administrator
The following routes are available for this service:
GET,POST,PUT,DELETE,OPTIONS/v1/CampaignEmailAudit/{CampaignEmailID}
GET,POST,PUT,DELETE,OPTIONS/v1/CampaignEmailAudit
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports CRM.AgencyPlatform.API.Internal

Namespace Global

    Namespace CRM.AgencyPlatform.API.Internal

        Public Partial Class CampaignEmailAudit
            Public Overridable Property CreatedDate As Date?
            Public Overridable Property CampaignEmailID As Integer
            Public Overridable Property EmailTo As String
            Public Overridable Property EmailFrom As String
            Public Overridable Property EmailSubject As String
            Public Overridable Property EmailBody As String
            Public Overridable Property CampaignTypeID As Integer
            Public Overridable Property AgentID As Integer
            Public Overridable Property ContactID As Integer
            Public Overridable Property sent As Boolean
        End Class

        Public Partial Class CampaignEmailAuditRequest
            Public Overridable Property CampaignEmailAudit As List(Of CampaignEmailAudit) = New List(Of CampaignEmailAudit)
        End Class

        Public Partial Class CampaignEmailAuditResponse
            Public Overridable Property ResponseStatus As ResponseStatus
            Public Overridable Property CampaignEmailAudit As List(Of CampaignEmailAudit) = New List(Of CampaignEmailAudit)
        End Class
    End Namespace
End Namespace

VB.NET CampaignEmailAuditRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /v1/CampaignEmailAudit/{CampaignEmailID} HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	CampaignEmailAudit: 
	[
		{
			CreatedDate: 0001-01-01,
			CampaignEmailID: 0,
			EmailTo: String,
			EmailFrom: String,
			EmailSubject: String,
			EmailBody: String,
			CampaignTypeID: 0,
			AgentID: 0,
			ContactID: 0,
			sent: False
		}
	]
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	},
	CampaignEmailAudit: 
	[
		{
			CreatedDate: 0001-01-01,
			CampaignEmailID: 0,
			EmailTo: String,
			EmailFrom: String,
			EmailSubject: String,
			EmailBody: String,
			CampaignTypeID: 0,
			AgentID: 0,
			ContactID: 0,
			sent: False
		}
	]
}