POST api/Inspections/GetByInspectionDetailByInspectionIdAndFilters

Request Information

URI Parameters

None.

Body Parameters

InspectionFiltersForPreviousAndNextId
NameDescriptionTypeAdditional information
AccountId

integer

Required

UserId

string

Required

RoleId

integer

Required

CreatedDateFrom

string

Required

CreatedDateTo

string

Required

InspectionId

integer

Required

SearchByInspectionName

string

None.

Score

integer

None.

ScoreOperator

integer

None.

ScoreIncludeNA

boolean

None.

Evaluators

Collection of string

None.

Assignments

Collection of integer

None.

InspectionTemplates

Collection of integer

None.

StatusId

integer

None.

IsInspectionPerformedByOperator

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "AccountId": 1,
  "UserId": "sample string 2",
  "RoleId": 3,
  "CreatedDateFrom": "sample string 4",
  "CreatedDateTo": "sample string 5",
  "InspectionId": 6,
  "SearchByInspectionName": "sample string 7",
  "Score": 8,
  "ScoreOperator": 9,
  "ScoreIncludeNA": true,
  "Evaluators": [
    "sample string 1",
    "sample string 2"
  ],
  "Assignments": [
    1,
    2
  ],
  "InspectionTemplates": [
    1,
    2
  ],
  "StatusId": 11,
  "IsInspectionPerformedByOperator": true
}

application/xml, text/xml

Sample:
<InspectionFiltersForPreviousAndNextId xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Walsh.Service.Models.InspectionsTemplates">
  <AccountId>1</AccountId>
  <Assignments xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </Assignments>
  <CreatedDateFrom>sample string 4</CreatedDateFrom>
  <CreatedDateTo>sample string 5</CreatedDateTo>
  <Evaluators xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </Evaluators>
  <InspectionId>6</InspectionId>
  <InspectionTemplates xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </InspectionTemplates>
  <IsInspectionPerformedByOperator>true</IsInspectionPerformedByOperator>
  <RoleId>3</RoleId>
  <Score>8</Score>
  <ScoreIncludeNA>true</ScoreIncludeNA>
  <ScoreOperator>9</ScoreOperator>
  <SearchByInspectionName>sample string 7</SearchByInspectionName>
  <StatusId>11</StatusId>
  <UserId>sample string 2</UserId>
</InspectionFiltersForPreviousAndNextId>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

InspectionSummaryModel
NameDescriptionTypeAdditional information
InspectionTemplateId

integer

None.

AccountId

integer

None.

Title

string

None.

Description

string

None.

InspectorId

string

None.

StartDate

date

None.

EndDate

date

None.

Score

integer

None.

Tags

string

None.

InspectorName

string

None.

Followups

integer

None.

LocationNode

string

None.

LocationType

Collection of integer

None.

Assignments

Collection of AssignmentsDetail

None.

PreviousInspectionId

integer

None.

NextInspectionId

integer

None.

InspectionActivity

Collection of InspectionChangeLogModel

None.

InspectionDuration

string

None.

InitialDuration

string

None.

InspectionType

string

None.

IsDurationCalculated

boolean

None.

OperatorInfo

Collection of OperatorInfo

None.

OperatorName

string

None.

Id

integer

None.

Status

string

None.

CreatedBy

string

None.

CreateTimestamp

date

None.

ModifiedBy

string

None.

ModifiedTimestamp

date

None.

DataStateFlag

string

None.

Response Formats

application/json, text/json

Sample:
{
  "InspectionTemplateId": 1,
  "AccountId": 2,
  "Title": "sample string 3",
  "Description": "sample string 4",
  "InspectorId": "sample string 5",
  "StartDate": "2024-11-21T08:54:13.2666044+00:00",
  "EndDate": "2024-11-21T08:54:13.2666044+00:00",
  "Score": 6,
  "Tags": "sample string 7",
  "InspectorName": "sample string 8",
  "Followups": 9,
  "LocationNode": "sample string 10",
  "LocationType": [
    1,
    2
  ],
  "Assignments": [
    {
      "Id": 1,
      "Name": "sample string 2",
      "IsAssignmentForOperator": true
    },
    {
      "Id": 1,
      "Name": "sample string 2",
      "IsAssignmentForOperator": true
    }
  ],
  "PreviousInspectionId": 1,
  "NextInspectionId": 1,
  "InspectionActivity": [
    {
      "InspectionId": 1,
      "Text": "sample string 2",
      "CreatedBy": "sample string 3",
      "CreateTimestamp": "sample string 4"
    },
    {
      "InspectionId": 1,
      "Text": "sample string 2",
      "CreatedBy": "sample string 3",
      "CreateTimestamp": "sample string 4"
    }
  ],
  "InspectionDuration": "sample string 11",
  "InitialDuration": "sample string 12",
  "InspectionType": "sample string 13",
  "IsDurationCalculated": true,
  "OperatorInfo": [
    {
      "Id": 1,
      "Name": "sample string 2",
      "UserId": "sample string 3"
    },
    {
      "Id": 1,
      "Name": "sample string 2",
      "UserId": "sample string 3"
    }
  ],
  "OperatorName": "sample string 15",
  "Id": 16,
  "Status": "sample string 17",
  "CreatedBy": "sample string 18",
  "CreateTimestamp": "2024-11-21T08:54:13.2785565+00:00",
  "ModifiedBy": "sample string 20",
  "ModifiedTimestamp": "2024-11-21T08:54:13.2785565+00:00",
  "DataStateFlag": "sample string 21"
}

application/xml, text/xml

Sample:
<InspectionSummaryModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Walsh.Model.Models.InspectionsTemplates">
  <CreateTimestamp xmlns:d2p1="http://schemas.datacontract.org/2004/07/System" xmlns="http://schemas.datacontract.org/2004/07/Walsh.Model.Models.BaseEntities">
    <d2p1:DateTime>2024-11-21T08:54:13.2785565Z</d2p1:DateTime>
    <d2p1:OffsetMinutes>0</d2p1:OffsetMinutes>
  </CreateTimestamp>
  <CreatedBy xmlns="http://schemas.datacontract.org/2004/07/Walsh.Model.Models.BaseEntities">sample string 18</CreatedBy>
  <DataStateFlag xmlns="http://schemas.datacontract.org/2004/07/Walsh.Model.Models.BaseEntities">sample string 21</DataStateFlag>
  <Id xmlns="http://schemas.datacontract.org/2004/07/Walsh.Model.Models.BaseEntities">16</Id>
  <ModifiedBy xmlns="http://schemas.datacontract.org/2004/07/Walsh.Model.Models.BaseEntities">sample string 20</ModifiedBy>
  <ModifiedTimestamp xmlns:d2p1="http://schemas.datacontract.org/2004/07/System" xmlns="http://schemas.datacontract.org/2004/07/Walsh.Model.Models.BaseEntities">
    <d2p1:DateTime>2024-11-21T08:54:13.2785565Z</d2p1:DateTime>
    <d2p1:OffsetMinutes>0</d2p1:OffsetMinutes>
  </ModifiedTimestamp>
  <Status xmlns="http://schemas.datacontract.org/2004/07/Walsh.Model.Models.BaseEntities">sample string 17</Status>
  <AccountId>2</AccountId>
  <Assignments xmlns:d2p1="http://schemas.datacontract.org/2004/07/Walsh.Model.Models.Assignment">
    <d2p1:AssignmentList.AssignmentsDetail>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:IsAssignmentForOperator>true</d2p1:IsAssignmentForOperator>
      <d2p1:Name>sample string 2</d2p1:Name>
    </d2p1:AssignmentList.AssignmentsDetail>
    <d2p1:AssignmentList.AssignmentsDetail>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:IsAssignmentForOperator>true</d2p1:IsAssignmentForOperator>
      <d2p1:Name>sample string 2</d2p1:Name>
    </d2p1:AssignmentList.AssignmentsDetail>
  </Assignments>
  <Description>sample string 4</Description>
  <EndDate>2024-11-21T08:54:13.2666044+00:00</EndDate>
  <Followups>9</Followups>
  <InitialDuration>sample string 12</InitialDuration>
  <InspectionActivity>
    <InspectionChangeLogModel>
      <CreateTimestamp>sample string 4</CreateTimestamp>
      <CreatedBy>sample string 3</CreatedBy>
      <InspectionId>1</InspectionId>
      <Text>sample string 2</Text>
    </InspectionChangeLogModel>
    <InspectionChangeLogModel>
      <CreateTimestamp>sample string 4</CreateTimestamp>
      <CreatedBy>sample string 3</CreatedBy>
      <InspectionId>1</InspectionId>
      <Text>sample string 2</Text>
    </InspectionChangeLogModel>
  </InspectionActivity>
  <InspectionDuration>sample string 11</InspectionDuration>
  <InspectionTemplateId>1</InspectionTemplateId>
  <InspectionType>sample string 13</InspectionType>
  <InspectorId>sample string 5</InspectorId>
  <InspectorName>sample string 8</InspectorName>
  <IsDurationCalculated>true</IsDurationCalculated>
  <LocationNode>sample string 10</LocationNode>
  <LocationType xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </LocationType>
  <NextInspectionId>1</NextInspectionId>
  <OperatorInfo xmlns:d2p1="http://schemas.datacontract.org/2004/07/Walsh.Model.Models.Assignment">
    <d2p1:AssignmentList.OperatorInfo>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:Name>sample string 2</d2p1:Name>
      <d2p1:UserId>sample string 3</d2p1:UserId>
    </d2p1:AssignmentList.OperatorInfo>
    <d2p1:AssignmentList.OperatorInfo>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:Name>sample string 2</d2p1:Name>
      <d2p1:UserId>sample string 3</d2p1:UserId>
    </d2p1:AssignmentList.OperatorInfo>
  </OperatorInfo>
  <OperatorName>sample string 15</OperatorName>
  <PreviousInspectionId>1</PreviousInspectionId>
  <Score>6</Score>
  <StartDate>2024-11-21T08:54:13.2666044+00:00</StartDate>
  <Tags>sample string 7</Tags>
  <Title>sample string 3</Title>
</InspectionSummaryModel>