POST api/RiskAssessment
Request Information
URI Parameters
None.
Body Parameters
RiskAssessmentName | Description | Type | Additional information |
---|---|---|---|
Id | integer |
None. |
|
InspectionId | integer |
None. |
|
ResponsiblePersonId1 | integer |
None. |
|
ResponsiblePersonId2 | integer |
None. |
|
Title | string |
None. |
|
ReferenceNo | string |
None. |
|
HazardTypeId | integer |
None. |
|
HazardSourceId | integer |
None. |
|
PartOfMachine | string |
None. |
|
LifeCycleId | integer |
None. |
|
CreatedBy | integer |
None. |
|
CreatedDate | date |
None. |
|
LastModifiedBy | integer |
None. |
|
LastModifiedDate | date |
None. |
|
DeletedBy | integer |
None. |
|
DeletedDate | date |
None. |
|
HazardTypeName | string |
None. |
|
HazardSourceName | string |
None. |
|
LifeCycleName | string |
None. |
|
LocalId | integer |
None. |
|
InspectionLocalId | integer |
None. |
|
LocalResponsiblePersonId1 | integer |
None. |
|
LocalResponsiblePersonId2 | integer |
None. |
|
ResponsiblePersonName | string |
None. |
|
ResponsiblePersonName2 | string |
None. |
|
CompletedByName | string |
None. |
|
ReferenceNoQRBase64 | string |
None. |
|
RiskAssessmentLine | RiskAssessmentLine |
None. |
|
RiskAssessmentLines | Collection of RiskAssessmentLine |
None. |
|
ImplementIsCompleted | boolean |
None. |
|
InspectionCustomerId | integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "Id": 1, "InspectionId": 2, "ResponsiblePersonId1": 3, "ResponsiblePersonId2": 1, "Title": "sample string 4", "ReferenceNo": "sample string 5", "HazardTypeId": 6, "HazardSourceId": 7, "PartOfMachine": "sample string 8", "LifeCycleId": 9, "CreatedBy": 10, "CreatedDate": "2025-08-29T20:26:23.6699135+00:00", "LastModifiedBy": 12, "LastModifiedDate": "2025-08-29T20:26:23.6699135+00:00", "DeletedBy": 1, "DeletedDate": "2025-08-29T20:26:23.6699135+00:00", "HazardTypeName": "sample string 14", "HazardSourceName": "sample string 15", "LifeCycleName": "sample string 16", "LocalId": 17, "InspectionLocalId": 18, "LocalResponsiblePersonId1": 19, "LocalResponsiblePersonId2": 1, "ResponsiblePersonName": "sample string 20", "ResponsiblePersonName2": "sample string 21", "CompletedByName": "sample string 22", "ReferenceNoQRBase64": "sample string 23", "RiskAssessmentLine": { "Id": 1, "RiskAssessmentId": 2, "RiskAssessmentTypeId": 3, "MeasureType": "sample string 4", "Description": "sample string 5", "LikelihoodOfOccurrenceId": 6, "FrequencyOfExposureId": 7, "DegreeOfPossibleHarmId": 8, "NumberOfPersonsAtRiskId": 9, "Score": 10.0, "IsCompleted": true, "CompletedBy": 1, "CompletedDate": "2025-08-29T20:26:23.6699135+00:00", "CreatedBy": 12, "CreatedDate": "2025-08-29T20:26:23.6699135+00:00", "LastModifiedBy": 14, "LastModifiedDate": "2025-08-29T20:26:23.6699135+00:00", "DeletedBy": 1, "DeletedDate": "2025-08-29T20:26:23.6699135+00:00", "ResidualRisk": "sample string 16", "ENPLR": "sample string 17", "LocalId": 18, "RiskAssessmentLocalId": 19, "CommentUserName": "sample string 20", "CreatedByName": "sample string 21", "CompletedByName": "sample string 22", "BgColor": "sample string 23", "RiskDescription": "sample string 24", "RiskAssessmentPhotos": [ { "Id": 1, "RiskAssessmentLineId": 2, "RiskAssessmentTypeId": 3, "ImagePath": "sample string 4", "CreatedBy": 5, "CreatedDate": "2025-08-29T20:26:23.6699135+00:00", "LastModifiedBy": 7, "LastModifiedDate": "2025-08-29T20:26:23.6699135+00:00", "DeletedBy": 1, "DeletedDate": "2025-08-29T20:26:23.6699135+00:00", "ImageBase64": "sample string 9", "LocalId": 10, "RiskAssessmentLineLocalId": 11 }, { "Id": 1, "RiskAssessmentLineId": 2, "RiskAssessmentTypeId": 3, "ImagePath": "sample string 4", "CreatedBy": 5, "CreatedDate": "2025-08-29T20:26:23.6699135+00:00", "LastModifiedBy": 7, "LastModifiedDate": "2025-08-29T20:26:23.6699135+00:00", "DeletedBy": 1, "DeletedDate": "2025-08-29T20:26:23.6699135+00:00", "ImageBase64": "sample string 9", "LocalId": 10, "RiskAssessmentLineLocalId": 11 } ], "InspectionInspectorId": 25, "InspectionIsCompleted": true, "ImplementedControlIsCompleted": true, "InspectionCustomerId": 28 }, "RiskAssessmentLines": [ { "Id": 1, "RiskAssessmentId": 2, "RiskAssessmentTypeId": 3, "MeasureType": "sample string 4", "Description": "sample string 5", "LikelihoodOfOccurrenceId": 6, "FrequencyOfExposureId": 7, "DegreeOfPossibleHarmId": 8, "NumberOfPersonsAtRiskId": 9, "Score": 10.0, "IsCompleted": true, "CompletedBy": 1, "CompletedDate": "2025-08-29T20:26:23.6699135+00:00", "CreatedBy": 12, "CreatedDate": "2025-08-29T20:26:23.6699135+00:00", "LastModifiedBy": 14, "LastModifiedDate": "2025-08-29T20:26:23.6699135+00:00", "DeletedBy": 1, "DeletedDate": "2025-08-29T20:26:23.6699135+00:00", "ResidualRisk": "sample string 16", "ENPLR": "sample string 17", "LocalId": 18, "RiskAssessmentLocalId": 19, "CommentUserName": "sample string 20", "CreatedByName": "sample string 21", "CompletedByName": "sample string 22", "BgColor": "sample string 23", "RiskDescription": "sample string 24", "RiskAssessmentPhotos": [ { "Id": 1, "RiskAssessmentLineId": 2, "RiskAssessmentTypeId": 3, "ImagePath": "sample string 4", "CreatedBy": 5, "CreatedDate": "2025-08-29T20:26:23.6699135+00:00", "LastModifiedBy": 7, "LastModifiedDate": "2025-08-29T20:26:23.6699135+00:00", "DeletedBy": 1, "DeletedDate": "2025-08-29T20:26:23.6699135+00:00", "ImageBase64": "sample string 9", "LocalId": 10, "RiskAssessmentLineLocalId": 11 }, { "Id": 1, "RiskAssessmentLineId": 2, "RiskAssessmentTypeId": 3, "ImagePath": "sample string 4", "CreatedBy": 5, "CreatedDate": "2025-08-29T20:26:23.6699135+00:00", "LastModifiedBy": 7, "LastModifiedDate": "2025-08-29T20:26:23.6699135+00:00", "DeletedBy": 1, "DeletedDate": "2025-08-29T20:26:23.6699135+00:00", "ImageBase64": "sample string 9", "LocalId": 10, "RiskAssessmentLineLocalId": 11 } ], "InspectionInspectorId": 25, "InspectionIsCompleted": true, "ImplementedControlIsCompleted": true, "InspectionCustomerId": 28 }, { "Id": 1, "RiskAssessmentId": 2, "RiskAssessmentTypeId": 3, "MeasureType": "sample string 4", "Description": "sample string 5", "LikelihoodOfOccurrenceId": 6, "FrequencyOfExposureId": 7, "DegreeOfPossibleHarmId": 8, "NumberOfPersonsAtRiskId": 9, "Score": 10.0, "IsCompleted": true, "CompletedBy": 1, "CompletedDate": "2025-08-29T20:26:23.6699135+00:00", "CreatedBy": 12, "CreatedDate": "2025-08-29T20:26:23.6699135+00:00", "LastModifiedBy": 14, "LastModifiedDate": "2025-08-29T20:26:23.6699135+00:00", "DeletedBy": 1, "DeletedDate": "2025-08-29T20:26:23.6699135+00:00", "ResidualRisk": "sample string 16", "ENPLR": "sample string 17", "LocalId": 18, "RiskAssessmentLocalId": 19, "CommentUserName": "sample string 20", "CreatedByName": "sample string 21", "CompletedByName": "sample string 22", "BgColor": "sample string 23", "RiskDescription": "sample string 24", "RiskAssessmentPhotos": [ { "Id": 1, "RiskAssessmentLineId": 2, "RiskAssessmentTypeId": 3, "ImagePath": "sample string 4", "CreatedBy": 5, "CreatedDate": "2025-08-29T20:26:23.6699135+00:00", "LastModifiedBy": 7, "LastModifiedDate": "2025-08-29T20:26:23.6699135+00:00", "DeletedBy": 1, "DeletedDate": "2025-08-29T20:26:23.6699135+00:00", "ImageBase64": "sample string 9", "LocalId": 10, "RiskAssessmentLineLocalId": 11 }, { "Id": 1, "RiskAssessmentLineId": 2, "RiskAssessmentTypeId": 3, "ImagePath": "sample string 4", "CreatedBy": 5, "CreatedDate": "2025-08-29T20:26:23.6699135+00:00", "LastModifiedBy": 7, "LastModifiedDate": "2025-08-29T20:26:23.6699135+00:00", "DeletedBy": 1, "DeletedDate": "2025-08-29T20:26:23.6699135+00:00", "ImageBase64": "sample string 9", "LocalId": 10, "RiskAssessmentLineLocalId": 11 } ], "InspectionInspectorId": 25, "InspectionIsCompleted": true, "ImplementedControlIsCompleted": true, "InspectionCustomerId": 28 } ], "ImplementIsCompleted": true, "InspectionCustomerId": 25 }
application/xml, text/xml
Sample:
<RiskAssessment xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MSCWebAPI.Domain"> <CompletedByName>sample string 22</CompletedByName> <CreatedBy>10</CreatedBy> <CreatedDate>2025-08-29T20:26:23.6699135+00:00</CreatedDate> <DeletedBy>1</DeletedBy> <DeletedDate>2025-08-29T20:26:23.6699135+00:00</DeletedDate> <HazardSourceId>7</HazardSourceId> <HazardSourceName>sample string 15</HazardSourceName> <HazardTypeId>6</HazardTypeId> <HazardTypeName>sample string 14</HazardTypeName> <Id>1</Id> <ImplementIsCompleted>true</ImplementIsCompleted> <InspectionCustomerId>25</InspectionCustomerId> <InspectionId>2</InspectionId> <InspectionLocalId>18</InspectionLocalId> <LastModifiedBy>12</LastModifiedBy> <LastModifiedDate>2025-08-29T20:26:23.6699135+00:00</LastModifiedDate> <LifeCycleId>9</LifeCycleId> <LifeCycleName>sample string 16</LifeCycleName> <LocalId>17</LocalId> <LocalResponsiblePersonId1>19</LocalResponsiblePersonId1> <LocalResponsiblePersonId2>1</LocalResponsiblePersonId2> <PartOfMachine>sample string 8</PartOfMachine> <ReferenceNo>sample string 5</ReferenceNo> <ReferenceNoQRBase64>sample string 23</ReferenceNoQRBase64> <ResponsiblePersonId1>3</ResponsiblePersonId1> <ResponsiblePersonId2>1</ResponsiblePersonId2> <ResponsiblePersonName>sample string 20</ResponsiblePersonName> <ResponsiblePersonName2>sample string 21</ResponsiblePersonName2> <RiskAssessmentLine> <BgColor>sample string 23</BgColor> <CommentUserName>sample string 20</CommentUserName> <CompletedBy>1</CompletedBy> <CompletedByName>sample string 22</CompletedByName> <CompletedDate>2025-08-29T20:26:23.6699135+00:00</CompletedDate> <CreatedBy>12</CreatedBy> <CreatedByName>sample string 21</CreatedByName> <CreatedDate>2025-08-29T20:26:23.6699135+00:00</CreatedDate> <DegreeOfPossibleHarmId>8</DegreeOfPossibleHarmId> <DeletedBy>1</DeletedBy> <DeletedDate>2025-08-29T20:26:23.6699135+00:00</DeletedDate> <Description>sample string 5</Description> <ENPLR>sample string 17</ENPLR> <FrequencyOfExposureId>7</FrequencyOfExposureId> <Id>1</Id> <ImplementedControlIsCompleted>true</ImplementedControlIsCompleted> <InspectionCustomerId>28</InspectionCustomerId> <InspectionInspectorId>25</InspectionInspectorId> <InspectionIsCompleted>true</InspectionIsCompleted> <IsCompleted>true</IsCompleted> <LastModifiedBy>14</LastModifiedBy> <LastModifiedDate>2025-08-29T20:26:23.6699135+00:00</LastModifiedDate> <LikelihoodOfOccurrenceId>6</LikelihoodOfOccurrenceId> <LocalId>18</LocalId> <MeasureType>sample string 4</MeasureType> <NumberOfPersonsAtRiskId>9</NumberOfPersonsAtRiskId> <ResidualRisk>sample string 16</ResidualRisk> <RiskAssessmentId>2</RiskAssessmentId> <RiskAssessmentLocalId>19</RiskAssessmentLocalId> <RiskAssessmentPhotos> <RiskAssessmentPhoto> <CreatedBy>5</CreatedBy> <CreatedDate>2025-08-29T20:26:23.6699135+00:00</CreatedDate> <DeletedBy>1</DeletedBy> <DeletedDate>2025-08-29T20:26:23.6699135+00:00</DeletedDate> <Id>1</Id> <ImageBase64>sample string 9</ImageBase64> <ImagePath>sample string 4</ImagePath> <LastModifiedBy>7</LastModifiedBy> <LastModifiedDate>2025-08-29T20:26:23.6699135+00:00</LastModifiedDate> <LocalId>10</LocalId> <RiskAssessmentLineId>2</RiskAssessmentLineId> <RiskAssessmentLineLocalId>11</RiskAssessmentLineLocalId> <RiskAssessmentTypeId>3</RiskAssessmentTypeId> </RiskAssessmentPhoto> <RiskAssessmentPhoto> <CreatedBy>5</CreatedBy> <CreatedDate>2025-08-29T20:26:23.6699135+00:00</CreatedDate> <DeletedBy>1</DeletedBy> <DeletedDate>2025-08-29T20:26:23.6699135+00:00</DeletedDate> <Id>1</Id> <ImageBase64>sample string 9</ImageBase64> <ImagePath>sample string 4</ImagePath> <LastModifiedBy>7</LastModifiedBy> <LastModifiedDate>2025-08-29T20:26:23.6699135+00:00</LastModifiedDate> <LocalId>10</LocalId> <RiskAssessmentLineId>2</RiskAssessmentLineId> <RiskAssessmentLineLocalId>11</RiskAssessmentLineLocalId> <RiskAssessmentTypeId>3</RiskAssessmentTypeId> </RiskAssessmentPhoto> </RiskAssessmentPhotos> <RiskAssessmentTypeId>3</RiskAssessmentTypeId> <RiskDescription>sample string 24</RiskDescription> <Score>10</Score> </RiskAssessmentLine> <RiskAssessmentLines> <RiskAssessmentLine> <BgColor>sample string 23</BgColor> <CommentUserName>sample string 20</CommentUserName> <CompletedBy>1</CompletedBy> <CompletedByName>sample string 22</CompletedByName> <CompletedDate>2025-08-29T20:26:23.6699135+00:00</CompletedDate> <CreatedBy>12</CreatedBy> <CreatedByName>sample string 21</CreatedByName> <CreatedDate>2025-08-29T20:26:23.6699135+00:00</CreatedDate> <DegreeOfPossibleHarmId>8</DegreeOfPossibleHarmId> <DeletedBy>1</DeletedBy> <DeletedDate>2025-08-29T20:26:23.6699135+00:00</DeletedDate> <Description>sample string 5</Description> <ENPLR>sample string 17</ENPLR> <FrequencyOfExposureId>7</FrequencyOfExposureId> <Id>1</Id> <ImplementedControlIsCompleted>true</ImplementedControlIsCompleted> <InspectionCustomerId>28</InspectionCustomerId> <InspectionInspectorId>25</InspectionInspectorId> <InspectionIsCompleted>true</InspectionIsCompleted> <IsCompleted>true</IsCompleted> <LastModifiedBy>14</LastModifiedBy> <LastModifiedDate>2025-08-29T20:26:23.6699135+00:00</LastModifiedDate> <LikelihoodOfOccurrenceId>6</LikelihoodOfOccurrenceId> <LocalId>18</LocalId> <MeasureType>sample string 4</MeasureType> <NumberOfPersonsAtRiskId>9</NumberOfPersonsAtRiskId> <ResidualRisk>sample string 16</ResidualRisk> <RiskAssessmentId>2</RiskAssessmentId> <RiskAssessmentLocalId>19</RiskAssessmentLocalId> <RiskAssessmentPhotos> <RiskAssessmentPhoto> <CreatedBy>5</CreatedBy> <CreatedDate>2025-08-29T20:26:23.6699135+00:00</CreatedDate> <DeletedBy>1</DeletedBy> <DeletedDate>2025-08-29T20:26:23.6699135+00:00</DeletedDate> <Id>1</Id> <ImageBase64>sample string 9</ImageBase64> <ImagePath>sample string 4</ImagePath> <LastModifiedBy>7</LastModifiedBy> <LastModifiedDate>2025-08-29T20:26:23.6699135+00:00</LastModifiedDate> <LocalId>10</LocalId> <RiskAssessmentLineId>2</RiskAssessmentLineId> <RiskAssessmentLineLocalId>11</RiskAssessmentLineLocalId> <RiskAssessmentTypeId>3</RiskAssessmentTypeId> </RiskAssessmentPhoto> <RiskAssessmentPhoto> <CreatedBy>5</CreatedBy> <CreatedDate>2025-08-29T20:26:23.6699135+00:00</CreatedDate> <DeletedBy>1</DeletedBy> <DeletedDate>2025-08-29T20:26:23.6699135+00:00</DeletedDate> <Id>1</Id> <ImageBase64>sample string 9</ImageBase64> <ImagePath>sample string 4</ImagePath> <LastModifiedBy>7</LastModifiedBy> <LastModifiedDate>2025-08-29T20:26:23.6699135+00:00</LastModifiedDate> <LocalId>10</LocalId> <RiskAssessmentLineId>2</RiskAssessmentLineId> <RiskAssessmentLineLocalId>11</RiskAssessmentLineLocalId> <RiskAssessmentTypeId>3</RiskAssessmentTypeId> </RiskAssessmentPhoto> </RiskAssessmentPhotos> <RiskAssessmentTypeId>3</RiskAssessmentTypeId> <RiskDescription>sample string 24</RiskDescription> <Score>10</Score> </RiskAssessmentLine> <RiskAssessmentLine> <BgColor>sample string 23</BgColor> <CommentUserName>sample string 20</CommentUserName> <CompletedBy>1</CompletedBy> <CompletedByName>sample string 22</CompletedByName> <CompletedDate>2025-08-29T20:26:23.6699135+00:00</CompletedDate> <CreatedBy>12</CreatedBy> <CreatedByName>sample string 21</CreatedByName> <CreatedDate>2025-08-29T20:26:23.6699135+00:00</CreatedDate> <DegreeOfPossibleHarmId>8</DegreeOfPossibleHarmId> <DeletedBy>1</DeletedBy> <DeletedDate>2025-08-29T20:26:23.6699135+00:00</DeletedDate> <Description>sample string 5</Description> <ENPLR>sample string 17</ENPLR> <FrequencyOfExposureId>7</FrequencyOfExposureId> <Id>1</Id> <ImplementedControlIsCompleted>true</ImplementedControlIsCompleted> <InspectionCustomerId>28</InspectionCustomerId> <InspectionInspectorId>25</InspectionInspectorId> <InspectionIsCompleted>true</InspectionIsCompleted> <IsCompleted>true</IsCompleted> <LastModifiedBy>14</LastModifiedBy> <LastModifiedDate>2025-08-29T20:26:23.6699135+00:00</LastModifiedDate> <LikelihoodOfOccurrenceId>6</LikelihoodOfOccurrenceId> <LocalId>18</LocalId> <MeasureType>sample string 4</MeasureType> <NumberOfPersonsAtRiskId>9</NumberOfPersonsAtRiskId> <ResidualRisk>sample string 16</ResidualRisk> <RiskAssessmentId>2</RiskAssessmentId> <RiskAssessmentLocalId>19</RiskAssessmentLocalId> <RiskAssessmentPhotos> <RiskAssessmentPhoto> <CreatedBy>5</CreatedBy> <CreatedDate>2025-08-29T20:26:23.6699135+00:00</CreatedDate> <DeletedBy>1</DeletedBy> <DeletedDate>2025-08-29T20:26:23.6699135+00:00</DeletedDate> <Id>1</Id> <ImageBase64>sample string 9</ImageBase64> <ImagePath>sample string 4</ImagePath> <LastModifiedBy>7</LastModifiedBy> <LastModifiedDate>2025-08-29T20:26:23.6699135+00:00</LastModifiedDate> <LocalId>10</LocalId> <RiskAssessmentLineId>2</RiskAssessmentLineId> <RiskAssessmentLineLocalId>11</RiskAssessmentLineLocalId> <RiskAssessmentTypeId>3</RiskAssessmentTypeId> </RiskAssessmentPhoto> <RiskAssessmentPhoto> <CreatedBy>5</CreatedBy> <CreatedDate>2025-08-29T20:26:23.6699135+00:00</CreatedDate> <DeletedBy>1</DeletedBy> <DeletedDate>2025-08-29T20:26:23.6699135+00:00</DeletedDate> <Id>1</Id> <ImageBase64>sample string 9</ImageBase64> <ImagePath>sample string 4</ImagePath> <LastModifiedBy>7</LastModifiedBy> <LastModifiedDate>2025-08-29T20:26:23.6699135+00:00</LastModifiedDate> <LocalId>10</LocalId> <RiskAssessmentLineId>2</RiskAssessmentLineId> <RiskAssessmentLineLocalId>11</RiskAssessmentLineLocalId> <RiskAssessmentTypeId>3</RiskAssessmentTypeId> </RiskAssessmentPhoto> </RiskAssessmentPhotos> <RiskAssessmentTypeId>3</RiskAssessmentTypeId> <RiskDescription>sample string 24</RiskDescription> <Score>10</Score> </RiskAssessmentLine> </RiskAssessmentLines> <Title>sample string 4</Title> </RiskAssessment>
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.