POST api/HazardType
Request Information
URI Parameters
None.
Body Parameters
HazardType| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| Name | string |
None. |
|
| Description | string |
None. |
|
| IsHide | boolean |
None. |
|
| CreatedBy | integer |
None. |
|
| CreatedDate | date |
None. |
|
| LastModifiedBy | integer |
None. |
|
| LastModifiedDate | date |
None. |
|
| DeletedBy | integer |
None. |
|
| DeletedDate | date |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"Name": "sample string 2",
"Description": "sample string 3",
"IsHide": true,
"CreatedBy": 5,
"CreatedDate": "2025-12-16T01:06:02.7756018+00:00",
"LastModifiedBy": 7,
"LastModifiedDate": "2025-12-16T01:06:02.7756018+00:00",
"DeletedBy": 1,
"DeletedDate": "2025-12-16T01:06:02.7756018+00:00"
}
application/xml, text/xml
Sample:
<HazardType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MSCWebAPI.Domain"> <CreatedBy>5</CreatedBy> <CreatedDate>2025-12-16T01:06:02.7756018+00:00</CreatedDate> <DeletedBy>1</DeletedBy> <DeletedDate>2025-12-16T01:06:02.7756018+00:00</DeletedDate> <Description>sample string 3</Description> <Id>1</Id> <IsHide>true</IsHide> <LastModifiedBy>7</LastModifiedBy> <LastModifiedDate>2025-12-16T01:06:02.7756018+00:00</LastModifiedDate> <Name>sample string 2</Name> </HazardType>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.