Hmx Accounts

<back to all web services

GetClientEmailTemplateRequest

The following routes are available for this service:
GET/api/clients/{clientid}/emailtemplates/{templatetype}Get an email template based on client id and template type
import 'package:servicestack/servicestack.dart';

class GetClientEmailTemplateRequest implements IConvertible
{
    String? clientId;
    String? templateType;

    GetClientEmailTemplateRequest({this.clientId,this.templateType});
    GetClientEmailTemplateRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        clientId = json['clientId'];
        templateType = json['templateType'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'clientId': clientId,
        'templateType': templateType
    };

    getTypeName() => "GetClientEmailTemplateRequest";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'accounts.dev.healthmonix.com', types: <String, TypeInfo> {
    'GetClientEmailTemplateRequest': TypeInfo(TypeOf.Class, create:() => GetClientEmailTemplateRequest()),
});

Dart GetClientEmailTemplateRequest 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.

GET /api/clients/{clientid}/emailtemplates/{templatetype} HTTP/1.1 
Host: accounts.dev.healthmonix.com 
Accept: text/jsv