Trendsic Platform Service

<back to all web services

CampaignTemplateRequest

Requires Authentication
Requires any of the roles:Agent, Administrator, Agent, Administrator, Agent, Administrator
The following routes are available for this service:
GET,POST,PUT,DELETE,OPTIONS/v1/CampaignTemplate/{CampaignTemplateId}
GET,POST,PUT,DELETE,OPTIONS/v1/CampaignTemplate
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 CampaignTemplate
            Public Overridable Property DateCreated As Date?
            Public Overridable Property DateDeleted As Date?
            Public Overridable Property CampaignTemplateId As Integer
            Public Overridable Property TemplateName As String
            Public Overridable Property CampaignTypeId As Integer
            Public Overridable Property Template As String
            Public Overridable Property Image As String
            Public Overridable Property Thumbnail As String
        End Class

        Public Partial Class CampaignTemplateRequest
            Public Overridable Property CampaignTemplateId As Integer
            Public Overridable Property CampaignTemplate As List(Of CampaignTemplate) = New List(Of CampaignTemplate)
        End Class

        Public Partial Class CampaignTemplateResponse
            Public Overridable Property ResponseStatus As ResponseStatus
            Public Overridable Property CampaignTemplate As List(Of CampaignTemplate) = New List(Of CampaignTemplate)
        End Class
    End Namespace
End Namespace

VB.NET CampaignTemplateRequest DTOs

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

HTTP + OTHER

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

POST /v1/CampaignTemplate/{CampaignTemplateId} HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"CampaignTemplateId":0,"CampaignTemplate":[{"DateCreated":"0001-01-01T00:00:00.0000000","DateDeleted":"0001-01-01T00:00:00.0000000","CampaignTemplateId":0,"TemplateName":"String","CampaignTypeId":0,"Template":"String","Image":"String","Thumbnail":"String"}]}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"CampaignTemplate":[{"DateCreated":"0001-01-01T00:00:00.0000000","DateDeleted":"0001-01-01T00:00:00.0000000","CampaignTemplateId":0,"TemplateName":"String","CampaignTypeId":0,"Template":"String","Image":"String","Thumbnail":"String"}]}