POST api/CosEccSummary/PostCompanyEmailTemplate
Request Information
URI Parameters
None.
Body Parameters
CompanyEmailTemplateDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| NotificationTypeId | integer |
None. |
|
| NotificationTypeName | string |
String length: inclusive between 0 and 250 |
|
| NotificationTypeTemplate | string |
String length: inclusive between 0 and 8000 |
|
| IsCustomTemplate | boolean |
None. |
|
| CustomTemplate | string |
String length: inclusive between 0 and 4000 |
|
| ServiceId | integer |
None. |
|
| NotificationFrom | integer |
None. |
|
| ExamId | string |
String length: inclusive between 0 and 20 |
|
| CustomFromEmailAddress | string |
String length: inclusive between 0 and 250 |
|
| CustomSubject | string |
String length: inclusive between 0 and 350 |
|
| IsCustomFrom | boolean |
None. |
|
| IsCustomSubject | boolean |
None. |
|
| NotificationTypeFrom | string |
String length: inclusive between 0 and 250 |
|
| NotificationTypeSubject | string |
String length: inclusive between 0 and 350 |
|
| Status | boolean |
None. |
|
| IncludeSuperVisor | boolean |
None. |
|
| WorkLocationCode | string |
None. |
|
| ValidFlag | boolean |
None. |
|
| DateCreated | date |
None. |
|
| DateUpdated | date |
None. |
|
| UserIDCreated | integer |
None. |
|
| UserIDUpdated | integer |
None. |
|
| CompanyCode | string |
String length: inclusive between 0 and 20 |
|
| IsExcludeDiscount | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"NotificationTypeId": 2,
"NotificationTypeName": "sample string 3",
"NotificationTypeTemplate": "sample string 4",
"IsCustomTemplate": true,
"CustomTemplate": "sample string 5",
"ServiceId": 6,
"NotificationFrom": 7,
"ExamId": "sample string 8",
"CustomFromEmailAddress": "sample string 9",
"CustomSubject": "sample string 10",
"IsCustomFrom": true,
"IsCustomSubject": true,
"NotificationTypeFrom": "sample string 11",
"NotificationTypeSubject": "sample string 12",
"Status": true,
"IncludeSuperVisor": true,
"WorkLocationCode": "sample string 13",
"ValidFlag": true,
"DateCreated": "2025-10-30T07:53:43.4137613-07:00",
"DateUpdated": "2025-10-30T07:53:43.4137613-07:00",
"UserIDCreated": 17,
"UserIDUpdated": 18,
"CompanyCode": "sample string 19",
"IsExcludeDiscount": true
}
application/xml, text/xml
Sample:
<CompanyEmailTemplateDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ASAP_BL.BL"> <CompanyCode>sample string 19</CompanyCode> <DateCreated>2025-10-30T07:53:43.4137613-07:00</DateCreated> <DateUpdated>2025-10-30T07:53:43.4137613-07:00</DateUpdated> <IsExcludeDiscount>true</IsExcludeDiscount> <UserIDCreated>17</UserIDCreated> <UserIDUpdated>18</UserIDUpdated> <ValidFlag>true</ValidFlag> <CustomFromEmailAddress>sample string 9</CustomFromEmailAddress> <CustomSubject>sample string 10</CustomSubject> <CustomTemplate>sample string 5</CustomTemplate> <ExamId>sample string 8</ExamId> <Id>1</Id> <IncludeSuperVisor>true</IncludeSuperVisor> <IsCustomFrom>true</IsCustomFrom> <IsCustomSubject>true</IsCustomSubject> <IsCustomTemplate>true</IsCustomTemplate> <NotificationFrom>7</NotificationFrom> <NotificationTypeFrom>sample string 11</NotificationTypeFrom> <NotificationTypeId>2</NotificationTypeId> <NotificationTypeName>sample string 3</NotificationTypeName> <NotificationTypeSubject>sample string 12</NotificationTypeSubject> <NotificationTypeTemplate>sample string 4</NotificationTypeTemplate> <ServiceId>6</ServiceId> <Status>true</Status> <WorkLocationCode>sample string 13</WorkLocationCode> </CompanyEmailTemplateDTO>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
AsapResponseOfCompanyEmailTemplateDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| isSuccess | boolean |
None. |
|
| message | string |
None. |
|
| jsonObj | CompanyEmailTemplateDTO |
None. |
|
| totalCount | integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"isSuccess": true,
"message": "sample string 2",
"jsonObj": {
"Id": 1,
"NotificationTypeId": 2,
"NotificationTypeName": "sample string 3",
"NotificationTypeTemplate": "sample string 4",
"IsCustomTemplate": true,
"CustomTemplate": "sample string 5",
"ServiceId": 6,
"NotificationFrom": 7,
"ExamId": "sample string 8",
"CustomFromEmailAddress": "sample string 9",
"CustomSubject": "sample string 10",
"IsCustomFrom": true,
"IsCustomSubject": true,
"NotificationTypeFrom": "sample string 11",
"NotificationTypeSubject": "sample string 12",
"Status": true,
"IncludeSuperVisor": true,
"WorkLocationCode": "sample string 13",
"ValidFlag": true,
"DateCreated": "2025-10-30T07:53:43.5988114-07:00",
"DateUpdated": "2025-10-30T07:53:43.5988114-07:00",
"UserIDCreated": 17,
"UserIDUpdated": 18,
"CompanyCode": "sample string 19",
"IsExcludeDiscount": true
},
"totalCount": 3
}
application/xml, text/xml
Sample:
<AsapResponseOfCompanyEmailTemplateDTO3NYuOdgi xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ASAP_BL.Common">
<isSuccess>true</isSuccess>
<jsonObj xmlns:d2p1="http://schemas.datacontract.org/2004/07/ASAP_BL.BL">
<d2p1:CompanyCode>sample string 19</d2p1:CompanyCode>
<d2p1:DateCreated>2025-10-30T07:53:43.5988114-07:00</d2p1:DateCreated>
<d2p1:DateUpdated>2025-10-30T07:53:43.5988114-07:00</d2p1:DateUpdated>
<d2p1:IsExcludeDiscount>true</d2p1:IsExcludeDiscount>
<d2p1:UserIDCreated>17</d2p1:UserIDCreated>
<d2p1:UserIDUpdated>18</d2p1:UserIDUpdated>
<d2p1:ValidFlag>true</d2p1:ValidFlag>
<d2p1:CustomFromEmailAddress>sample string 9</d2p1:CustomFromEmailAddress>
<d2p1:CustomSubject>sample string 10</d2p1:CustomSubject>
<d2p1:CustomTemplate>sample string 5</d2p1:CustomTemplate>
<d2p1:ExamId>sample string 8</d2p1:ExamId>
<d2p1:Id>1</d2p1:Id>
<d2p1:IncludeSuperVisor>true</d2p1:IncludeSuperVisor>
<d2p1:IsCustomFrom>true</d2p1:IsCustomFrom>
<d2p1:IsCustomSubject>true</d2p1:IsCustomSubject>
<d2p1:IsCustomTemplate>true</d2p1:IsCustomTemplate>
<d2p1:NotificationFrom>7</d2p1:NotificationFrom>
<d2p1:NotificationTypeFrom>sample string 11</d2p1:NotificationTypeFrom>
<d2p1:NotificationTypeId>2</d2p1:NotificationTypeId>
<d2p1:NotificationTypeName>sample string 3</d2p1:NotificationTypeName>
<d2p1:NotificationTypeSubject>sample string 12</d2p1:NotificationTypeSubject>
<d2p1:NotificationTypeTemplate>sample string 4</d2p1:NotificationTypeTemplate>
<d2p1:ServiceId>6</d2p1:ServiceId>
<d2p1:Status>true</d2p1:Status>
<d2p1:WorkLocationCode>sample string 13</d2p1:WorkLocationCode>
</jsonObj>
<message>sample string 2</message>
<totalCount>3</totalCount>
</AsapResponseOfCompanyEmailTemplateDTO3NYuOdgi>