POST api/TrackerInitialHazard

Request Information

URI Parameters

None.

Body Parameters

TrackerInitialHazard
NameDescriptionTypeAdditional information
Id

integer

None.

TrackerLineId

integer

None.

HazardId

integer

None.

HazardDescriptionId

integer

None.

CreatedBy

integer

None.

CreatedDate

date

None.

LastModifiedBy

integer

None.

LastModifiedDate

date

None.

DeletedBy

integer

None.

DeletedDate

date

None.

BgColor

string

None.

ControlRiskDesc

string

None.

HazardDescription

HazardDescription

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "TrackerLineId": 2,
  "HazardId": 3,
  "HazardDescriptionId": 4,
  "CreatedBy": 5,
  "CreatedDate": "2025-08-29T20:24:24.0720177+00:00",
  "LastModifiedBy": 7,
  "LastModifiedDate": "2025-08-29T20:24:24.0720177+00:00",
  "DeletedBy": 1,
  "DeletedDate": "2025-08-29T20:24:24.0720177+00:00",
  "BgColor": "sample string 9",
  "ControlRiskDesc": "sample string 10",
  "HazardDescription": {
    "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:24:24.0720177+00:00",
    "LastModifiedBy": 11,
    "LastModifiedDate": "2025-08-29T20:24:24.0720177+00:00",
    "DeletedBy": 1,
    "DeletedDate": "2025-08-29T20:24:24.0720177+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:24:24.0720177+00:00",
        "LastModifiedBy": 6,
        "LastModifiedDate": "2025-08-29T20:24:24.0720177+00:00",
        "DeletedBy": 1,
        "DeletedDate": "2025-08-29T20:24:24.0720177+00:00",
        "ImageBase64": "sample string 8",
        "LocalId": 9,
        "LocalHazardDescriptionId": 10
      },
      {
        "Id": 1,
        "HazardDescriptionId": 2,
        "ImagePath": "sample string 3",
        "CreatedBy": 4,
        "CreatedDate": "2025-08-29T20:24:24.0720177+00:00",
        "LastModifiedBy": 6,
        "LastModifiedDate": "2025-08-29T20:24:24.0720177+00:00",
        "DeletedBy": 1,
        "DeletedDate": "2025-08-29T20:24:24.0720177+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:
<TrackerInitialHazard xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MSCWebAPI.Domain">
  <BgColor>sample string 9</BgColor>
  <ControlRiskDesc>sample string 10</ControlRiskDesc>
  <CreatedBy>5</CreatedBy>
  <CreatedDate>2025-08-29T20:24:24.0720177+00:00</CreatedDate>
  <DeletedBy>1</DeletedBy>
  <DeletedDate>2025-08-29T20:24:24.0720177+00:00</DeletedDate>
  <HazardDescription>
    <BgColor>sample string 14</BgColor>
    <CreatedBy>9</CreatedBy>
    <CreatedByName>sample string 13</CreatedByName>
    <CreatedDate>2025-08-29T20:24:24.0720177+00:00</CreatedDate>
    <DegreeOfPossibleHarmId>6</DegreeOfPossibleHarmId>
    <DegreeOfPossibleHarmIdName>sample string 19</DegreeOfPossibleHarmIdName>
    <DeletedBy>1</DeletedBy>
    <DeletedDate>2025-08-29T20:24:24.0720177+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:24:24.0720177+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:24:24.0720177+00:00</CreatedDate>
        <DeletedBy>1</DeletedBy>
        <DeletedDate>2025-08-29T20:24:24.0720177+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:24:24.0720177+00:00</LastModifiedDate>
        <LocalHazardDescriptionId>10</LocalHazardDescriptionId>
        <LocalId>9</LocalId>
      </HazardDescriptionImage>
      <HazardDescriptionImage>
        <CreatedBy>4</CreatedBy>
        <CreatedDate>2025-08-29T20:24:24.0720177+00:00</CreatedDate>
        <DeletedBy>1</DeletedBy>
        <DeletedDate>2025-08-29T20:24:24.0720177+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:24:24.0720177+00:00</LastModifiedDate>
        <LocalHazardDescriptionId>10</LocalHazardDescriptionId>
        <LocalId>9</LocalId>
      </HazardDescriptionImage>
    </hazardDescriptionImages>
  </HazardDescription>
  <HazardDescriptionId>4</HazardDescriptionId>
  <HazardId>3</HazardId>
  <Id>1</Id>
  <LastModifiedBy>7</LastModifiedBy>
  <LastModifiedDate>2025-08-29T20:24:24.0720177+00:00</LastModifiedDate>
  <TrackerLineId>2</TrackerLineId>
</TrackerInitialHazard>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.