| All Verbs | /api/defaulttemplates |
|---|
"use strict";
export class CommunicationTemplateBodyModel {
/** @param {{Body?:string,TemplateType?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
Body;
/** @type {string} */
TemplateType;
}
export class GetDefaultTemplatesResponse {
/** @param {{Templates?:CommunicationTemplateBodyModel[],ResponseStatus?:ResponseStatus}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {CommunicationTemplateBodyModel[]} */
Templates;
/** @type {ResponseStatus} */
ResponseStatus;
}
export class GetDefaultTemplates {
constructor(init) { Object.assign(this, init) }
}
JavaScript GetDefaultTemplates DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /api/defaulttemplates HTTP/1.1
Host: pfapi.pstpf.com.au
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
Templates:
[
{
Body: String
}
],
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
}
}