PUT api/v1/infrastructure/communicationtemplates

Use to create new template in system

Request Information

URI Parameters

None.

Body Parameters

all required template data

Com.Healthbridge.Core.CommonDomain.Interface.ValueObjects.CommunicationTemplateVo
NameDescriptionTypeAdditional information
PracticeId

globally unique identifier

None.

TemplateId

globally unique identifier

None.

TemplateName

string

None.

TemplateType

string

None.

TemplateMediaType

string

None.

TemplateIdentifier

string

None.

TemplateBody

string

None.

Locale

string

None.

LastUpdated

date

None.

LastUpdatedBy

string

None.

Request Formats

application/json, text/json

Sample:
{
  "PracticeId": "e5b18f86-5d0c-43ee-a27d-6f30818bddab",
  "TemplateId": "913c05cf-79f2-41b3-8f08-cccbead42fa4",
  "TemplateName": "sample string 3",
  "TemplateType": "sample string 4",
  "TemplateMediaType": "sample string 5",
  "TemplateIdentifier": "sample string 6",
  "TemplateBody": "sample string 7",
  "Locale": "sample string 8",
  "LastUpdated": "2025-04-23T23:05:58Z",
  "LastUpdatedBy": "sample string 10"
}

application/xml, text/xml

Sample:
<CommunicationTemplate xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://mpsapi.healthbridge.com/platform/commondomain/v1/communicationtemplate/">
  <LastUpdated>2025-04-23T23:05:58.1233332+02:00</LastUpdated>
  <LastUpdatedBy>sample string 10</LastUpdatedBy>
  <Locale>sample string 8</Locale>
  <PracticeId>e5b18f86-5d0c-43ee-a27d-6f30818bddab</PracticeId>
  <TemplateBody>sample string 7</TemplateBody>
  <TemplateId>913c05cf-79f2-41b3-8f08-cccbead42fa4</TemplateId>
  <TemplateIdentifier>sample string 6</TemplateIdentifier>
  <TemplateMediaType>sample string 5</TemplateMediaType>
  <TemplateName>sample string 3</TemplateName>
  <TemplateType>sample string 4</TemplateType>
</CommunicationTemplate>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'System.Web.Http.ModelBinding.JQueryMvcFormUrlEncodedFormatter' to write type 'CommunicationTemplateVo'.

Response Information

Resource Description

Com.Healthbridge.Core.CommonDomain.Interface.ValueObjects.RestApiResultOfSystem.Guid
NameDescriptionTypeAdditional information
Sucess

boolean

None.

ResponseCode

integer

None.

ResponseMessage

string

None.

Data

globally unique identifier

None.

Links

Collection of Com.Healthbridge.Core.CommonDomain.Interface.ValueObjects.RestApiLink

None.

Response Formats

application/json, text/json

Sample:
{
  "Sucess": true,
  "ResponseCode": 2,
  "ResponseMessage": "sample string 3",
  "Data": "3de9cc98-334b-4e85-b7f4-7d7e3c5a37d2",
  "Links": [
    {
      "Rel": "sample string 1",
      "HRef": "sample string 2"
    },
    {
      "Rel": "sample string 1",
      "HRef": "sample string 2"
    }
  ]
}

application/xml, text/xml

Sample:
<RestApiResultOfguid xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Com.Healthbridge.Core.CommonDomain.Interface.ValueObjects">
  <Data>3de9cc98-334b-4e85-b7f4-7d7e3c5a37d2</Data>
  <Links>
    <RestApiLink>
      <HRef>sample string 2</HRef>
      <Rel>sample string 1</Rel>
    </RestApiLink>
    <RestApiLink>
      <HRef>sample string 2</HRef>
      <Rel>sample string 1</Rel>
    </RestApiLink>
  </Links>
  <ResponseCode>2</ResponseCode>
  <ResponseMessage>sample string 3</ResponseMessage>
  <Sucess>true</Sucess>
</RestApiResultOfguid>