POST odin/CreateReportTemplate

Request Information

URI Parameters

None.

Body Parameters

ReportTemplate
NameDescriptionTypeAdditional information
ReportTemplateId

integer

None.

TenantID

integer

None.

TemplateName

string

None.

IsActive

boolean

None.

ODINTemplateCode

string

None.

ObjectTypeId

integer

None.

DocAccountTypeId

integer

None.

ShowClientInfo

boolean

None.

ShowRadios

boolean

None.

ShowRadioZones

boolean

None.

ShowSpecials

boolean

None.

ShowTechnicalJobs

boolean

None.

ShowHistory

boolean

None.

EmailSendingTemplateId

integer

None.

EmailSendingTemplateName

string

None.

ObjectTypeName

string

None.

Request Formats

application/json, text/json

Sample:
{
  "ReportTemplateId": 1,
  "TenantID": 2,
  "TemplateName": "sample string 3",
  "IsActive": true,
  "ODINTemplateCode": "sample string 4",
  "ObjectTypeId": 1,
  "DocAccountTypeId": 1,
  "ShowClientInfo": true,
  "ShowRadios": true,
  "ShowRadioZones": true,
  "ShowSpecials": true,
  "ShowTechnicalJobs": true,
  "ShowHistory": true,
  "EmailSendingTemplateId": 1,
  "EmailSendingTemplateName": "sample string 5",
  "ObjectTypeName": "sample string 6"
}

text/html

Sample:
{"ReportTemplateId":1,"TenantID":2,"TemplateName":"sample string 3","IsActive":true,"ODINTemplateCode":"sample string 4","ObjectTypeId":1,"DocAccountTypeId":1,"ShowClientInfo":true,"ShowRadios":true,"ShowRadioZones":true,"ShowSpecials":true,"ShowTechnicalJobs":true,"ShowHistory":true,"EmailSendingTemplateId":1,"EmailSendingTemplateName":"sample string 5","ObjectTypeName":"sample string 6"}

application/xml, text/xml

Sample:
<ReportTemplate xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ListenerOnline.Xyro.Models.Odin">
  <DocAccountTypeId>1</DocAccountTypeId>
  <EmailSendingTemplateId>1</EmailSendingTemplateId>
  <EmailSendingTemplateName>sample string 5</EmailSendingTemplateName>
  <IsActive>true</IsActive>
  <ODINTemplateCode>sample string 4</ODINTemplateCode>
  <ObjectTypeId>1</ObjectTypeId>
  <ObjectTypeName>sample string 6</ObjectTypeName>
  <ReportTemplateId>1</ReportTemplateId>
  <ShowClientInfo>true</ShowClientInfo>
  <ShowHistory>true</ShowHistory>
  <ShowRadioZones>true</ShowRadioZones>
  <ShowRadios>true</ShowRadios>
  <ShowSpecials>true</ShowSpecials>
  <ShowTechnicalJobs>true</ShowTechnicalJobs>
  <TemplateName>sample string 3</TemplateName>
  <TenantID>2</TenantID>
</ReportTemplate>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'ReportTemplate'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, text/html, application/xml, text/xml

Sample:

Sample not available.