POST api/InsurancePremiumPlant
create new a row in stm premium plants table
Request Information
URI Parameters
None.
Body Parameters
InsurancePremiumPlantResult| Name | Description | Type | Additional information |
|---|---|---|---|
| PlantId | integer |
None. |
|
| CompanyId | integer |
None. |
|
| PlantStartDate | date |
None. |
|
| PlantEndDate | date |
None. |
|
| EmployeePlantAmount | decimal number |
None. |
|
| FamilyPlantAmount | decimal number |
None. |
|
| CreatedBy | string |
None. |
|
| CreatedDate | date |
None. |
|
| UpdatedBy | string |
None. |
|
| UpdatedDate | date |
None. |
|
| CreatedByUserId | integer |
None. |
|
| UpdatedByUserId | integer |
None. |
|
| IsActive | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"PlantId": 1,
"CompanyId": 2,
"PlantStartDate": "2026-04-01T06:23:43.9033395+07:00",
"PlantEndDate": "2026-04-01T06:23:43.9033395+07:00",
"EmployeePlantAmount": 3.0,
"FamilyPlantAmount": 4.0,
"CreatedBy": "sample string 5",
"CreatedDate": "2026-04-01T06:23:43.9033395+07:00",
"UpdatedBy": "sample string 6",
"UpdatedDate": "2026-04-01T06:23:43.9033395+07:00",
"CreatedByUserId": 7,
"UpdatedByUserId": 1,
"IsActive": 1
}
text/html
Sample:
{"PlantId":1,"CompanyId":2,"PlantStartDate":"2026-04-01T06:23:43.9033395+07:00","PlantEndDate":"2026-04-01T06:23:43.9033395+07:00","EmployeePlantAmount":3.0,"FamilyPlantAmount":4.0,"CreatedBy":"sample string 5","CreatedDate":"2026-04-01T06:23:43.9033395+07:00","UpdatedBy":"sample string 6","UpdatedDate":"2026-04-01T06:23:43.9033395+07:00","CreatedByUserId":7,"UpdatedByUserId":1,"IsActive":1}
application/xml, text/xml
Sample:
<InsurancePremiumPlantResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TTMWM_MECLAIM_API.ViewModels"> <CompanyId>2</CompanyId> <CreatedBy>sample string 5</CreatedBy> <CreatedByUserId>7</CreatedByUserId> <CreatedDate>2026-04-01T06:23:43.9033395+07:00</CreatedDate> <EmployeePlantAmount>3</EmployeePlantAmount> <FamilyPlantAmount>4</FamilyPlantAmount> <IsActive>1</IsActive> <PlantEndDate>2026-04-01T06:23:43.9033395+07:00</PlantEndDate> <PlantId>1</PlantId> <PlantStartDate>2026-04-01T06:23:43.9033395+07:00</PlantStartDate> <UpdatedBy>sample string 6</UpdatedBy> <UpdatedByUserId>1</UpdatedByUserId> <UpdatedDate>2026-04-01T06:23:43.9033395+07:00</UpdatedDate> </InsurancePremiumPlantResult>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ServiceResultTypedOfInsurancePremiumPlantResult| Name | Description | Type | Additional information |
|---|---|---|---|
| Code | integer |
None. |
|
| Errors | Collection of string |
None. |
|
| Data | InsurancePremiumPlantResult |
None. |
Response Formats
application/json, text/json
Sample:
{
"Code": 1,
"Errors": [
"sample string 1",
"sample string 2"
],
"Data": {
"PlantId": 1,
"CompanyId": 2,
"PlantStartDate": "2026-04-01T06:23:43.9093364+07:00",
"PlantEndDate": "2026-04-01T06:23:43.9093364+07:00",
"EmployeePlantAmount": 3.0,
"FamilyPlantAmount": 4.0,
"CreatedBy": "sample string 5",
"CreatedDate": "2026-04-01T06:23:43.9093364+07:00",
"UpdatedBy": "sample string 6",
"UpdatedDate": "2026-04-01T06:23:43.9093364+07:00",
"CreatedByUserId": 7,
"UpdatedByUserId": 1,
"IsActive": 1
}
}
text/html
Sample:
{"Code":1,"Errors":["sample string 1","sample string 2"],"Data":{"PlantId":1,"CompanyId":2,"PlantStartDate":"2026-04-01T06:23:43.9093364+07:00","PlantEndDate":"2026-04-01T06:23:43.9093364+07:00","EmployeePlantAmount":3.0,"FamilyPlantAmount":4.0,"CreatedBy":"sample string 5","CreatedDate":"2026-04-01T06:23:43.9093364+07:00","UpdatedBy":"sample string 6","UpdatedDate":"2026-04-01T06:23:43.9093364+07:00","CreatedByUserId":7,"UpdatedByUserId":1,"IsActive":1}}
application/xml, text/xml
Sample:
<ServiceResultTypedOfInsurancePremiumPlantResultYj8O1tFc xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LSW.Common.Models">
<Code>1</Code>
<Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/TTMWM_MECLAIM_API.ViewModels">
<d2p1:CompanyId>2</d2p1:CompanyId>
<d2p1:CreatedBy>sample string 5</d2p1:CreatedBy>
<d2p1:CreatedByUserId>7</d2p1:CreatedByUserId>
<d2p1:CreatedDate>2026-04-01T06:23:43.9093364+07:00</d2p1:CreatedDate>
<d2p1:EmployeePlantAmount>3</d2p1:EmployeePlantAmount>
<d2p1:FamilyPlantAmount>4</d2p1:FamilyPlantAmount>
<d2p1:IsActive>1</d2p1:IsActive>
<d2p1:PlantEndDate>2026-04-01T06:23:43.9093364+07:00</d2p1:PlantEndDate>
<d2p1:PlantId>1</d2p1:PlantId>
<d2p1:PlantStartDate>2026-04-01T06:23:43.9093364+07:00</d2p1:PlantStartDate>
<d2p1:UpdatedBy>sample string 6</d2p1:UpdatedBy>
<d2p1:UpdatedByUserId>1</d2p1:UpdatedByUserId>
<d2p1:UpdatedDate>2026-04-01T06:23:43.9093364+07:00</d2p1:UpdatedDate>
</Data>
<Errors xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</Errors>
</ServiceResultTypedOfInsurancePremiumPlantResultYj8O1tFc>