| 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 .other suffix or ?format=other
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/jsonl
Content-Type: text/jsonl
Content-Length: length
{}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"Templates":[{"Body":"String","TemplateType":"00000000-0000-0000-0000-000000000000"}],"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}