POST api/HazardDescription/GetHazardCalculatedScore
Request Information
URI Parameters
None.
Body Parameters
HazardDescriptionName | Description | Type | Additional information |
---|---|---|---|
Id | integer |
None. |
|
HazardId | integer |
None. |
|
Description | string |
None. |
|
LikelihoodOfOccurrenceId | integer |
None. |
|
FrequencyOfExposureId | integer |
None. |
|
DegreeOfPossibleHarmId | integer |
None. |
|
NumberOfPersonsAtRiskId | integer |
None. |
|
Score | decimal number |
None. |
|
CreatedBy | integer |
None. |
|
CreatedDate | date |
None. |
|
LastModifiedBy | integer |
None. |
|
LastModifiedDate | date |
None. |
|
DeletedBy | integer |
None. |
|
DeletedDate | date |
None. |
|
CreatedByName | string |
None. |
|
BgColor | string |
None. |
|
RiskDescription | string |
None. |
|
hazardDescriptionImages | Collection of HazardDescriptionImage |
None. |
|
IsImplementedControlCompleted | boolean |
None. |
|
LikelihoodOfOccurrenceIdName | string |
None. |
|
FrequencyOfExposureIdName | string |
None. |
|
DegreeOfPossibleHarmIdName | string |
None. |
|
NumberOfPersonsAtRiskIdName | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "Id": 1, "HazardId": 2, "Description": "sample string 3", "LikelihoodOfOccurrenceId": 4, "FrequencyOfExposureId": 5, "DegreeOfPossibleHarmId": 6, "NumberOfPersonsAtRiskId": 7, "Score": 8.0, "CreatedBy": 9, "CreatedDate": "2025-08-29T20:25:38.9738161+00:00", "LastModifiedBy": 11, "LastModifiedDate": "2025-08-29T20:25:38.9738161+00:00", "DeletedBy": 1, "DeletedDate": "2025-08-29T20:25:38.9738161+00:00", "CreatedByName": "sample string 13", "BgColor": "sample string 14", "RiskDescription": "sample string 15", "hazardDescriptionImages": [ { "Id": 1, "HazardDescriptionId": 2, "ImagePath": "sample string 3", "CreatedBy": 4, "CreatedDate": "2025-08-29T20:25:38.9738161+00:00", "LastModifiedBy": 6, "LastModifiedDate": "2025-08-29T20:25:38.9738161+00:00", "DeletedBy": 1, "DeletedDate": "2025-08-29T20:25:38.9738161+00:00", "ImageBase64": "sample string 8", "LocalId": 9, "LocalHazardDescriptionId": 10 }, { "Id": 1, "HazardDescriptionId": 2, "ImagePath": "sample string 3", "CreatedBy": 4, "CreatedDate": "2025-08-29T20:25:38.9738161+00:00", "LastModifiedBy": 6, "LastModifiedDate": "2025-08-29T20:25:38.9738161+00:00", "DeletedBy": 1, "DeletedDate": "2025-08-29T20:25:38.9738161+00:00", "ImageBase64": "sample string 8", "LocalId": 9, "LocalHazardDescriptionId": 10 } ], "IsImplementedControlCompleted": true, "LikelihoodOfOccurrenceIdName": "sample string 17", "FrequencyOfExposureIdName": "sample string 18", "DegreeOfPossibleHarmIdName": "sample string 19", "NumberOfPersonsAtRiskIdName": "sample string 20" }
application/xml, text/xml
Sample:
<HazardDescription xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MSCWebAPI.Domain"> <BgColor>sample string 14</BgColor> <CreatedBy>9</CreatedBy> <CreatedByName>sample string 13</CreatedByName> <CreatedDate>2025-08-29T20:25:38.9738161+00:00</CreatedDate> <DegreeOfPossibleHarmId>6</DegreeOfPossibleHarmId> <DegreeOfPossibleHarmIdName>sample string 19</DegreeOfPossibleHarmIdName> <DeletedBy>1</DeletedBy> <DeletedDate>2025-08-29T20:25:38.9738161+00:00</DeletedDate> <Description>sample string 3</Description> <FrequencyOfExposureId>5</FrequencyOfExposureId> <FrequencyOfExposureIdName>sample string 18</FrequencyOfExposureIdName> <HazardId>2</HazardId> <Id>1</Id> <IsImplementedControlCompleted>true</IsImplementedControlCompleted> <LastModifiedBy>11</LastModifiedBy> <LastModifiedDate>2025-08-29T20:25:38.9738161+00:00</LastModifiedDate> <LikelihoodOfOccurrenceId>4</LikelihoodOfOccurrenceId> <LikelihoodOfOccurrenceIdName>sample string 17</LikelihoodOfOccurrenceIdName> <NumberOfPersonsAtRiskId>7</NumberOfPersonsAtRiskId> <NumberOfPersonsAtRiskIdName>sample string 20</NumberOfPersonsAtRiskIdName> <RiskDescription>sample string 15</RiskDescription> <Score>8</Score> <hazardDescriptionImages> <HazardDescriptionImage> <CreatedBy>4</CreatedBy> <CreatedDate>2025-08-29T20:25:38.9738161+00:00</CreatedDate> <DeletedBy>1</DeletedBy> <DeletedDate>2025-08-29T20:25:38.9738161+00:00</DeletedDate> <HazardDescriptionId>2</HazardDescriptionId> <Id>1</Id> <ImageBase64>sample string 8</ImageBase64> <ImagePath>sample string 3</ImagePath> <LastModifiedBy>6</LastModifiedBy> <LastModifiedDate>2025-08-29T20:25:38.9738161+00:00</LastModifiedDate> <LocalHazardDescriptionId>10</LocalHazardDescriptionId> <LocalId>9</LocalId> </HazardDescriptionImage> <HazardDescriptionImage> <CreatedBy>4</CreatedBy> <CreatedDate>2025-08-29T20:25:38.9738161+00:00</CreatedDate> <DeletedBy>1</DeletedBy> <DeletedDate>2025-08-29T20:25:38.9738161+00:00</DeletedDate> <HazardDescriptionId>2</HazardDescriptionId> <Id>1</Id> <ImageBase64>sample string 8</ImageBase64> <ImagePath>sample string 3</ImagePath> <LastModifiedBy>6</LastModifiedBy> <LastModifiedDate>2025-08-29T20:25:38.9738161+00:00</LastModifiedDate> <LocalHazardDescriptionId>10</LocalHazardDescriptionId> <LocalId>9</LocalId> </HazardDescriptionImage> </hazardDescriptionImages> </HazardDescription>
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.