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
"use strict";
export class CampaignTemplate {
    /** @param {{DateCreated?:string,DateDeleted?:string,CampaignTemplateId?:number,TemplateName?:string,CampaignTypeId?:number,Template?:string,Image?:string,Thumbnail?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {?string} */
    DateCreated;
    /** @type {?string} */
    DateDeleted;
    /** @type {number} */
    CampaignTemplateId;
    /** @type {string} */
    TemplateName;
    /** @type {number} */
    CampaignTypeId;
    /** @type {string} */
    Template;
    /** @type {string} */
    Image;
    /** @type {string} */
    Thumbnail;
}
export class CampaignTemplateResponse {
    /** @param {{ResponseStatus?:ResponseStatus,CampaignTemplate?:CampaignTemplate[]}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {ResponseStatus} */
    ResponseStatus;
    /** @type {CampaignTemplate[]} */
    CampaignTemplate = [];
}
export class CampaignTemplateRequest {
    /** @param {{CampaignTemplateId?:number,CampaignTemplate?:CampaignTemplate[]}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {number} */
    CampaignTemplateId;
    /** @type {CampaignTemplate[]} */
    CampaignTemplate = [];
}

JavaScript 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"}]}