POST api/UnsafeActCondition/InsertUnsafeActData
Request Information
URI Parameters
None.
Body Parameters
UnSafeActCondtionViewModal| Name | Description | Type | Additional information |
|---|---|---|---|
| UnSafe_Code | integer |
None. |
|
| Sys_Code | string |
None. |
|
| Company_Code | integer |
None. |
|
| Plant_Code | integer |
None. |
|
| ReportingNo | string |
None. |
|
| ReportingDateTime | date |
None. |
|
| TargetedDate | date |
None. |
|
| LocationMasterItem | integer |
None. |
|
| UnsafeTypeMasterItem | integer |
None. |
|
| TypeofActConditonMasterItem | integer |
None. |
|
| SeverityMasterItem | integer |
None. |
|
| HarzardMasterItem | integer |
None. |
|
| StanderRefMasterItem | integer |
None. |
|
| ReportedBy | integer |
None. |
|
| ReporteeDepartment_Code | integer |
None. |
|
| ExcutorDepartment_Code | integer |
None. |
|
| HodHosUser | integer |
None. |
|
| EmployeeTypeMasterItem | integer |
None. |
|
| ImprovementDetails | string |
None. |
|
| StatusMasterItem | integer |
None. |
|
| CompanyName | string |
None. |
|
| PlantName | string |
None. |
|
| LocationName | string |
None. |
|
| UnsafeTypeName | string |
None. |
|
| TypeofActConditonName | string |
None. |
|
| ReporterName | string |
None. |
|
| ExcutorDepartmentName | string |
None. |
|
| StatusName | string |
None. |
|
| CreatedDate | date |
None. |
|
| CreateBy | integer |
None. |
|
| ModifiedDate | date |
None. |
|
| ModifiedBy | integer |
None. |
|
| IsActive | boolean |
None. |
|
| IsDelete | boolean |
None. |
|
| IsSync | boolean |
None. |
|
| EmployeeDetail | Collection of unSafeEmployeeRelationView |
None. |
|
| LabourDetail | Collection of unSafeLabourRelationView |
None. |
Request Formats
application/json, text/json
Sample:
{
"UnSafe_Code": 1,
"Sys_Code": "sample string 2",
"Company_Code": 3,
"Plant_Code": 4,
"ReportingNo": "sample string 5",
"ReportingDateTime": "2026-06-19T07:48:50.744667+00:00",
"TargetedDate": "2026-06-19T07:48:50.744667+00:00",
"LocationMasterItem": 1,
"UnsafeTypeMasterItem": 1,
"TypeofActConditonMasterItem": 1,
"SeverityMasterItem": 1,
"HarzardMasterItem": 1,
"StanderRefMasterItem": 1,
"ReportedBy": 1,
"ReporteeDepartment_Code": 1,
"ExcutorDepartment_Code": 1,
"HodHosUser": 1,
"EmployeeTypeMasterItem": 1,
"ImprovementDetails": "sample string 6",
"StatusMasterItem": 1,
"CompanyName": "sample string 7",
"PlantName": "sample string 8",
"LocationName": "sample string 9",
"UnsafeTypeName": "sample string 10",
"TypeofActConditonName": "sample string 11",
"ReporterName": "sample string 12",
"ExcutorDepartmentName": "sample string 13",
"StatusName": "sample string 14",
"CreatedDate": "2026-06-19T07:48:50.744667+00:00",
"CreateBy": 1,
"ModifiedDate": "2026-06-19T07:48:50.744667+00:00",
"ModifiedBy": 1,
"IsActive": true,
"IsDelete": true,
"IsSync": true,
"EmployeeDetail": [
{
"ID": 1,
"Sys_Code": "sample string 2",
"UnSafe_Code": 3,
"UserID": 4,
"EmployeeName": "sample string 5",
"ContractorName": "sample string 6",
"CreatedDate": "2026-06-19T07:48:50.744667+00:00",
"CreateBy": 1,
"ModifiedDate": "2026-06-19T07:48:50.744667+00:00",
"ModifiedBy": 1,
"IsActive": true,
"IsDelete": true,
"IsSync": true
},
{
"ID": 1,
"Sys_Code": "sample string 2",
"UnSafe_Code": 3,
"UserID": 4,
"EmployeeName": "sample string 5",
"ContractorName": "sample string 6",
"CreatedDate": "2026-06-19T07:48:50.744667+00:00",
"CreateBy": 1,
"ModifiedDate": "2026-06-19T07:48:50.744667+00:00",
"ModifiedBy": 1,
"IsActive": true,
"IsDelete": true,
"IsSync": true
}
],
"LabourDetail": [
{
"ID": 1,
"Sys_Code": "sample string 2",
"UnSafe_Code": 3,
"UserID": 4,
"NameofContractMan": "sample string 5",
"ContractorName": "sample string 6",
"CreatedDate": "2026-06-19T07:48:50.744667+00:00",
"CreateBy": 1,
"ModifiedDate": "2026-06-19T07:48:50.744667+00:00",
"ModifiedBy": 1,
"IsActive": true,
"IsDelete": true,
"IsSync": true
},
{
"ID": 1,
"Sys_Code": "sample string 2",
"UnSafe_Code": 3,
"UserID": 4,
"NameofContractMan": "sample string 5",
"ContractorName": "sample string 6",
"CreatedDate": "2026-06-19T07:48:50.744667+00:00",
"CreateBy": 1,
"ModifiedDate": "2026-06-19T07:48:50.744667+00:00",
"ModifiedBy": 1,
"IsActive": true,
"IsDelete": true,
"IsSync": true
}
]
}
application/xml, text/xml
Sample:
<UnSafeActCondtionViewModal xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ViewModelHRMS">
<CompanyName>sample string 7</CompanyName>
<Company_Code>3</Company_Code>
<CreateBy>1</CreateBy>
<CreatedDate>2026-06-19T07:48:50.744667+00:00</CreatedDate>
<EmployeeDetail>
<unSafeEmployeeRelationView>
<ContractorName>sample string 6</ContractorName>
<CreateBy>1</CreateBy>
<CreatedDate>2026-06-19T07:48:50.744667+00:00</CreatedDate>
<EmployeeName>sample string 5</EmployeeName>
<ID>1</ID>
<IsActive>true</IsActive>
<IsDelete>true</IsDelete>
<IsSync>true</IsSync>
<ModifiedBy>1</ModifiedBy>
<ModifiedDate>2026-06-19T07:48:50.744667+00:00</ModifiedDate>
<Sys_Code>sample string 2</Sys_Code>
<UnSafe_Code>3</UnSafe_Code>
<UserID>4</UserID>
</unSafeEmployeeRelationView>
<unSafeEmployeeRelationView>
<ContractorName>sample string 6</ContractorName>
<CreateBy>1</CreateBy>
<CreatedDate>2026-06-19T07:48:50.744667+00:00</CreatedDate>
<EmployeeName>sample string 5</EmployeeName>
<ID>1</ID>
<IsActive>true</IsActive>
<IsDelete>true</IsDelete>
<IsSync>true</IsSync>
<ModifiedBy>1</ModifiedBy>
<ModifiedDate>2026-06-19T07:48:50.744667+00:00</ModifiedDate>
<Sys_Code>sample string 2</Sys_Code>
<UnSafe_Code>3</UnSafe_Code>
<UserID>4</UserID>
</unSafeEmployeeRelationView>
</EmployeeDetail>
<EmployeeTypeMasterItem>1</EmployeeTypeMasterItem>
<ExcutorDepartmentName>sample string 13</ExcutorDepartmentName>
<ExcutorDepartment_Code>1</ExcutorDepartment_Code>
<HarzardMasterItem>1</HarzardMasterItem>
<HodHosUser>1</HodHosUser>
<ImprovementDetails>sample string 6</ImprovementDetails>
<IsActive>true</IsActive>
<IsDelete>true</IsDelete>
<IsSync>true</IsSync>
<LabourDetail>
<unSafeLabourRelationView>
<ContractorName>sample string 6</ContractorName>
<CreateBy>1</CreateBy>
<CreatedDate>2026-06-19T07:48:50.744667+00:00</CreatedDate>
<ID>1</ID>
<IsActive>true</IsActive>
<IsDelete>true</IsDelete>
<IsSync>true</IsSync>
<ModifiedBy>1</ModifiedBy>
<ModifiedDate>2026-06-19T07:48:50.744667+00:00</ModifiedDate>
<NameofContractMan>sample string 5</NameofContractMan>
<Sys_Code>sample string 2</Sys_Code>
<UnSafe_Code>3</UnSafe_Code>
<UserID>4</UserID>
</unSafeLabourRelationView>
<unSafeLabourRelationView>
<ContractorName>sample string 6</ContractorName>
<CreateBy>1</CreateBy>
<CreatedDate>2026-06-19T07:48:50.744667+00:00</CreatedDate>
<ID>1</ID>
<IsActive>true</IsActive>
<IsDelete>true</IsDelete>
<IsSync>true</IsSync>
<ModifiedBy>1</ModifiedBy>
<ModifiedDate>2026-06-19T07:48:50.744667+00:00</ModifiedDate>
<NameofContractMan>sample string 5</NameofContractMan>
<Sys_Code>sample string 2</Sys_Code>
<UnSafe_Code>3</UnSafe_Code>
<UserID>4</UserID>
</unSafeLabourRelationView>
</LabourDetail>
<LocationMasterItem>1</LocationMasterItem>
<LocationName>sample string 9</LocationName>
<ModifiedBy>1</ModifiedBy>
<ModifiedDate>2026-06-19T07:48:50.744667+00:00</ModifiedDate>
<PlantName>sample string 8</PlantName>
<Plant_Code>4</Plant_Code>
<ReportedBy>1</ReportedBy>
<ReporteeDepartment_Code>1</ReporteeDepartment_Code>
<ReporterName>sample string 12</ReporterName>
<ReportingDateTime>2026-06-19T07:48:50.744667+00:00</ReportingDateTime>
<ReportingNo>sample string 5</ReportingNo>
<SeverityMasterItem>1</SeverityMasterItem>
<StanderRefMasterItem>1</StanderRefMasterItem>
<StatusMasterItem>1</StatusMasterItem>
<StatusName>sample string 14</StatusName>
<Sys_Code>sample string 2</Sys_Code>
<TargetedDate>2026-06-19T07:48:50.744667+00:00</TargetedDate>
<TypeofActConditonMasterItem>1</TypeofActConditonMasterItem>
<TypeofActConditonName>sample string 11</TypeofActConditonName>
<UnSafe_Code>1</UnSafe_Code>
<UnsafeTypeMasterItem>1</UnsafeTypeMasterItem>
<UnsafeTypeName>sample string 10</UnsafeTypeName>
</UnSafeActCondtionViewModal>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
stringResponse Formats
application/json, text/json
Sample:
"sample string 1"
application/xml, text/xml
Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>