POST api/FatigueReport

Request Information

URI Parameters

None.

Body Parameters

FatigueReportsMdl
NameDescriptionTypeAdditional information
Id

integer

None.

ReportId

integer

None.

pilotInfoAssignedTrip

string

None.

employee

string

None.

departureStationId

integer

None.

submitReportTime

date

None.

describedHowYouFelt

string

None.

departurestationName

string

None.

departurestationType

string

None.

timeOfEvent

string

None.

pilotFlying

string

None.

pilotNotFlying

string

None.

whatHappened

string

None.

name

string

None.

pilotZuluDate

date

None.

howLongwereyouawakewhentheeventhappened

string

None.

howmuchsleepdidyouhaveinthe24hrsbeforetheevent

string

None.

howmuchsleepdidyouhaveinthe72hrsbeforetheevent

string

None.

whatDidYouDo

string

None.

whatCouldBeDone

string

None.

isActive

boolean

None.

reportStatusId

integer

None.

arrivalStationId

integer

None.

arrivalstationName

string

None.

arrivalstationType

string

None.

reportStatus

string

None.

caseNumber

string

None.

comment1

string

None.

comment2

string

None.

comment3

string

None.

commentOnRejection

string

None.

createdByName

string

None.

submiterId

string

None.

submiterName

string

None.

FatigueReportsCheckHowYouFelt

Collection of FatigueReportsCheckHowYouFeltMdl

None.

FatigueReportsWhyDidItHappened

Collection of FatigueReportsWhyDidItHappenedMdl

None.

SafetyEventLog

Collection of SafetyEventLogMdl

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "ReportId": 2,
  "pilotInfoAssignedTrip": "sample string 3",
  "employee": "sample string 4",
  "departureStationId": 1,
  "submitReportTime": "2024-11-22T21:43:28.9708093-06:00",
  "describedHowYouFelt": "sample string 5",
  "departurestationName": "sample string 6",
  "departurestationType": "sample string 7",
  "timeOfEvent": "sample string 8",
  "pilotFlying": "sample string 9",
  "pilotNotFlying": "sample string 10",
  "whatHappened": "sample string 11",
  "name": "sample string 12",
  "pilotZuluDate": "2024-11-22T21:43:28.9708093-06:00",
  "howLongwereyouawakewhentheeventhappened": "sample string 13",
  "howmuchsleepdidyouhaveinthe24hrsbeforetheevent": "sample string 14",
  "howmuchsleepdidyouhaveinthe72hrsbeforetheevent": "sample string 15",
  "whatDidYouDo": "sample string 16",
  "whatCouldBeDone": "sample string 17",
  "isActive": true,
  "reportStatusId": 18,
  "arrivalStationId": 1,
  "arrivalstationName": "sample string 19",
  "arrivalstationType": "sample string 20",
  "reportStatus": "sample string 21",
  "caseNumber": "sample string 22",
  "comment1": "sample string 23",
  "comment2": "sample string 24",
  "comment3": "sample string 25",
  "commentOnRejection": "sample string 26",
  "createdByName": "sample string 27",
  "submiterId": "sample string 28",
  "submiterName": "sample string 29",
  "FatigueReportsCheckHowYouFelt": [
    {
      "Id": 1,
      "fatigueReportsId": 1,
      "pilotCheckHowYouFeltId": 2,
      "pilotCheckHowYouFeltName": "sample string 3"
    },
    {
      "Id": 1,
      "fatigueReportsId": 1,
      "pilotCheckHowYouFeltId": 2,
      "pilotCheckHowYouFeltName": "sample string 3"
    }
  ],
  "FatigueReportsWhyDidItHappened": [
    {
      "Id": 1,
      "fatigueReportsId": 1,
      "pilotWhyDidItHappenedId": 2,
      "pilotWhyDidItHappenedName": "sample string 3",
      "WhyDidItHappenedOtherComment": "sample string 4"
    },
    {
      "Id": 1,
      "fatigueReportsId": 1,
      "pilotWhyDidItHappenedId": 2,
      "pilotWhyDidItHappenedName": "sample string 3",
      "WhyDidItHappenedOtherComment": "sample string 4"
    }
  ],
  "SafetyEventLog": [
    {
      "Id": 1,
      "ReportId": 2,
      "UserId": "sample string 3",
      "Action": "sample string 4",
      "FieldName": "sample string 5",
      "NewValue": "sample string 6",
      "OldValue": "sample string 7",
      "CreatedAt": "2024-11-22T21:43:28.9708093-06:00",
      "UpdatedAt": "2024-11-22T21:43:28.9708093-06:00"
    },
    {
      "Id": 1,
      "ReportId": 2,
      "UserId": "sample string 3",
      "Action": "sample string 4",
      "FieldName": "sample string 5",
      "NewValue": "sample string 6",
      "OldValue": "sample string 7",
      "CreatedAt": "2024-11-22T21:43:28.9708093-06:00",
      "UpdatedAt": "2024-11-22T21:43:28.9708093-06:00"
    }
  ]
}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ResponseMdl
NameDescriptionTypeAdditional information
Status

boolean

None.

Data

Object

None.

Message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Status": true,
  "Data": {},
  "Message": "sample string 3"
}