POST api/Inspection/inspections

Gets a list of inspection that match the supplied filter criteria

Request Information

URI Parameters

None.

Body Parameters

A JSON string that may be deserialized into a FilterInspectionMobile object. Available parameters include: Buildings, StartDate, EndDate, Tour, SpaceTypes, Service

FilterInspectionMobile
NameDescriptionTypeAdditional information
StartDate

string

None.

AccountID

integer

None.

Buildings

Collection of string

None.

EndDate

string

None.

SpaceGroups

Collection of string

None.

Tour

string

None.

Service

string

None.

Request Formats

application/json, text/json

Sample:
{
  "StartDate": "sample string 1",
  "AccountID": 1,
  "Buildings": [
    "sample string 1",
    "sample string 2"
  ],
  "EndDate": "sample string 2",
  "SpaceGroups": [
    "sample string 1",
    "sample string 2"
  ],
  "Tour": "sample string 3",
  "Service": "sample string 4"
}

application/xml, text/xml

Sample:
<FilterInspectionMobile xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Aramark.ISIS.Domain.Filters">
  <AccountID>1</AccountID>
  <Buildings xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </Buildings>
  <EndDate>sample string 2</EndDate>
  <Service>sample string 4</Service>
  <SpaceGroups xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </SpaceGroups>
  <StartDate>sample string 1</StartDate>
  <Tour>sample string 3</Tour>
</FilterInspectionMobile>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'FilterInspectionMobile'.

Response Information

Resource Description

A list of Inspections

MobileScheduledInspectionsPackage
NameDescriptionTypeAdditional information
Inspections

Collection of MobileInspection

None.

Questions

Collection of MobileInspectionQuestion

None.

ID

integer

None.

Description

string

Required

Value

string

None.

EnDescription

string

None.

AccountID

integer

None.

IsEditable

boolean

None.

IsSelectable

boolean

None.

Code

string

None.

Color

string

None.

ShortDescription

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Inspections": [
    {
      "Name": "sample string 1",
      "Type": "sample string 2",
      "Date": "2024-05-18T04:40:30.8005622Z",
      "Template": "sample string 3",
      "InspectTemplateID": 4,
      "SpaceID": 1,
      "SpacePath": "sample string 5",
      "TargetPercentage": "sample string 6",
      "QuestionIDs": [
        1,
        2
      ],
      "Attributes": [
        {
          "Required": true,
          "HasChoices": true,
          "AttributeChoices": [
            {
              "ID": 1,
              "InspectAttributeID": 2,
              "Description": "sample string 3",
              "EnDescription": "samplestring3",
              "UserName": "sample string 4",
              "LastChanged": "2024-05-18T04:40:30.8005622Z"
            },
            {
              "ID": 1,
              "InspectAttributeID": 2,
              "Description": "sample string 3",
              "EnDescription": "samplestring3",
              "UserName": "sample string 4",
              "LastChanged": "2024-05-18T04:40:30.8005622Z"
            }
          ],
          "ID": 3,
          "Description": "sample string 4",
          "Value": "sample string 5",
          "EnDescription": "samplestring4",
          "AccountID": 6,
          "IsEditable": true,
          "IsSelectable": true,
          "Code": "sample string 9",
          "Color": "sample string 10",
          "ShortDescription": "sample string 11"
        },
        {
          "Required": true,
          "HasChoices": true,
          "AttributeChoices": [
            {
              "ID": 1,
              "InspectAttributeID": 2,
              "Description": "sample string 3",
              "EnDescription": "samplestring3",
              "UserName": "sample string 4",
              "LastChanged": "2024-05-18T04:40:30.8005622Z"
            },
            {
              "ID": 1,
              "InspectAttributeID": 2,
              "Description": "sample string 3",
              "EnDescription": "samplestring3",
              "UserName": "sample string 4",
              "LastChanged": "2024-05-18T04:40:30.8005622Z"
            }
          ],
          "ID": 3,
          "Description": "sample string 4",
          "Value": "sample string 5",
          "EnDescription": "samplestring4",
          "AccountID": 6,
          "IsEditable": true,
          "IsSelectable": true,
          "Code": "sample string 9",
          "Color": "sample string 10",
          "ShortDescription": "sample string 11"
        }
      ],
      "ID": 7,
      "Description": "sample string 8",
      "Value": "sample string 9",
      "EnDescription": "samplestring8",
      "AccountID": 10,
      "IsEditable": true,
      "IsSelectable": true,
      "Code": "sample string 13",
      "Color": "sample string 14",
      "ShortDescription": "sample string 15"
    },
    {
      "Name": "sample string 1",
      "Type": "sample string 2",
      "Date": "2024-05-18T04:40:30.8005622Z",
      "Template": "sample string 3",
      "InspectTemplateID": 4,
      "SpaceID": 1,
      "SpacePath": "sample string 5",
      "TargetPercentage": "sample string 6",
      "QuestionIDs": [
        1,
        2
      ],
      "Attributes": [
        {
          "Required": true,
          "HasChoices": true,
          "AttributeChoices": [
            {
              "ID": 1,
              "InspectAttributeID": 2,
              "Description": "sample string 3",
              "EnDescription": "samplestring3",
              "UserName": "sample string 4",
              "LastChanged": "2024-05-18T04:40:30.8005622Z"
            },
            {
              "ID": 1,
              "InspectAttributeID": 2,
              "Description": "sample string 3",
              "EnDescription": "samplestring3",
              "UserName": "sample string 4",
              "LastChanged": "2024-05-18T04:40:30.8005622Z"
            }
          ],
          "ID": 3,
          "Description": "sample string 4",
          "Value": "sample string 5",
          "EnDescription": "samplestring4",
          "AccountID": 6,
          "IsEditable": true,
          "IsSelectable": true,
          "Code": "sample string 9",
          "Color": "sample string 10",
          "ShortDescription": "sample string 11"
        },
        {
          "Required": true,
          "HasChoices": true,
          "AttributeChoices": [
            {
              "ID": 1,
              "InspectAttributeID": 2,
              "Description": "sample string 3",
              "EnDescription": "samplestring3",
              "UserName": "sample string 4",
              "LastChanged": "2024-05-18T04:40:30.8005622Z"
            },
            {
              "ID": 1,
              "InspectAttributeID": 2,
              "Description": "sample string 3",
              "EnDescription": "samplestring3",
              "UserName": "sample string 4",
              "LastChanged": "2024-05-18T04:40:30.8005622Z"
            }
          ],
          "ID": 3,
          "Description": "sample string 4",
          "Value": "sample string 5",
          "EnDescription": "samplestring4",
          "AccountID": 6,
          "IsEditable": true,
          "IsSelectable": true,
          "Code": "sample string 9",
          "Color": "sample string 10",
          "ShortDescription": "sample string 11"
        }
      ],
      "ID": 7,
      "Description": "sample string 8",
      "Value": "sample string 9",
      "EnDescription": "samplestring8",
      "AccountID": 10,
      "IsEditable": true,
      "IsSelectable": true,
      "Code": "sample string 13",
      "Color": "sample string 14",
      "ShortDescription": "sample string 15"
    }
  ],
  "Questions": [
    {
      "Weight": 1,
      "CommentRequired": true,
      "Order": 3,
      "ScoreTypeID": 4,
      "AllowNA": true,
      "ScoreChoices": [
        {
          "ID": 1,
          "Description": "sample string 2",
          "EnDescription": "samplestring2",
          "Value": 3,
          "UserName": "sample string 4",
          "LastChanged": "2024-05-18T04:40:30.8005622Z",
          "InspectScoreTypeID": 5
        },
        {
          "ID": 1,
          "Description": "sample string 2",
          "EnDescription": "samplestring2",
          "Value": 3,
          "UserName": "sample string 4",
          "LastChanged": "2024-05-18T04:40:30.8005622Z",
          "InspectScoreTypeID": 5
        }
      ],
      "Comments": [
        {
          "ID": 1,
          "Description": "sample string 2",
          "EnDescription": "samplestring2",
          "AccountID": 3,
          "IsSelectable": true,
          "UserName": "sample string 5",
          "LastChanged": "2024-05-18T04:40:30.8005622Z"
        },
        {
          "ID": 1,
          "Description": "sample string 2",
          "EnDescription": "samplestring2",
          "AccountID": 3,
          "IsSelectable": true,
          "UserName": "sample string 5",
          "LastChanged": "2024-05-18T04:40:30.8005622Z"
        }
      ],
      "ID": 6,
      "Description": "sample string 7",
      "Value": "sample string 8",
      "EnDescription": "samplestring7",
      "AccountID": 9,
      "IsEditable": true,
      "IsSelectable": true,
      "Code": "sample string 12",
      "Color": "sample string 13",
      "ShortDescription": "sample string 14"
    },
    {
      "Weight": 1,
      "CommentRequired": true,
      "Order": 3,
      "ScoreTypeID": 4,
      "AllowNA": true,
      "ScoreChoices": [
        {
          "ID": 1,
          "Description": "sample string 2",
          "EnDescription": "samplestring2",
          "Value": 3,
          "UserName": "sample string 4",
          "LastChanged": "2024-05-18T04:40:30.8005622Z",
          "InspectScoreTypeID": 5
        },
        {
          "ID": 1,
          "Description": "sample string 2",
          "EnDescription": "samplestring2",
          "Value": 3,
          "UserName": "sample string 4",
          "LastChanged": "2024-05-18T04:40:30.8005622Z",
          "InspectScoreTypeID": 5
        }
      ],
      "Comments": [
        {
          "ID": 1,
          "Description": "sample string 2",
          "EnDescription": "samplestring2",
          "AccountID": 3,
          "IsSelectable": true,
          "UserName": "sample string 5",
          "LastChanged": "2024-05-18T04:40:30.8005622Z"
        },
        {
          "ID": 1,
          "Description": "sample string 2",
          "EnDescription": "samplestring2",
          "AccountID": 3,
          "IsSelectable": true,
          "UserName": "sample string 5",
          "LastChanged": "2024-05-18T04:40:30.8005622Z"
        }
      ],
      "ID": 6,
      "Description": "sample string 7",
      "Value": "sample string 8",
      "EnDescription": "samplestring7",
      "AccountID": 9,
      "IsEditable": true,
      "IsSelectable": true,
      "Code": "sample string 12",
      "Color": "sample string 13",
      "ShortDescription": "sample string 14"
    }
  ],
  "ID": 1,
  "Description": "sample string 2",
  "Value": "sample string 3",
  "EnDescription": "samplestring2",
  "AccountID": 4,
  "IsEditable": true,
  "IsSelectable": true,
  "Code": "sample string 7",
  "Color": "sample string 8",
  "ShortDescription": "sample string 9"
}

application/xml, text/xml

Sample:
<MobileScheduledInspectionsPackage xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Aramark.ISIS.Domain.Models">
  <AccountID>4</AccountID>
  <Code>sample string 7</Code>
  <Color>sample string 8</Color>
  <Description>sample string 2</Description>
  <ID>1</ID>
  <IsEditable>true</IsEditable>
  <IsSelectable>true</IsSelectable>
  <ShortDescription>sample string 9</ShortDescription>
  <Value>sample string 3</Value>
  <Inspections>
    <MobileInspection>
      <AccountID>10</AccountID>
      <Code>sample string 13</Code>
      <Color>sample string 14</Color>
      <Description>sample string 8</Description>
      <ID>7</ID>
      <IsEditable>true</IsEditable>
      <IsSelectable>true</IsSelectable>
      <ShortDescription>sample string 15</ShortDescription>
      <Value>sample string 9</Value>
      <Attributes>
        <MobileInspectionAttribute>
          <AccountID>6</AccountID>
          <Code>sample string 9</Code>
          <Color>sample string 10</Color>
          <Description>sample string 4</Description>
          <ID>3</ID>
          <IsEditable>true</IsEditable>
          <IsSelectable>true</IsSelectable>
          <ShortDescription>sample string 11</ShortDescription>
          <Value>sample string 5</Value>
          <AttributeChoices>
            <InspectionAttributeChoice>
              <Description>sample string 3</Description>
              <ID>1</ID>
              <InspectAttributeID>2</InspectAttributeID>
              <LastChanged>2024-05-18T04:40:30.8005622+00:00</LastChanged>
              <UserName>sample string 4</UserName>
            </InspectionAttributeChoice>
            <InspectionAttributeChoice>
              <Description>sample string 3</Description>
              <ID>1</ID>
              <InspectAttributeID>2</InspectAttributeID>
              <LastChanged>2024-05-18T04:40:30.8005622+00:00</LastChanged>
              <UserName>sample string 4</UserName>
            </InspectionAttributeChoice>
          </AttributeChoices>
          <HasChoices>true</HasChoices>
          <Required>true</Required>
        </MobileInspectionAttribute>
        <MobileInspectionAttribute>
          <AccountID>6</AccountID>
          <Code>sample string 9</Code>
          <Color>sample string 10</Color>
          <Description>sample string 4</Description>
          <ID>3</ID>
          <IsEditable>true</IsEditable>
          <IsSelectable>true</IsSelectable>
          <ShortDescription>sample string 11</ShortDescription>
          <Value>sample string 5</Value>
          <AttributeChoices>
            <InspectionAttributeChoice>
              <Description>sample string 3</Description>
              <ID>1</ID>
              <InspectAttributeID>2</InspectAttributeID>
              <LastChanged>2024-05-18T04:40:30.8005622+00:00</LastChanged>
              <UserName>sample string 4</UserName>
            </InspectionAttributeChoice>
            <InspectionAttributeChoice>
              <Description>sample string 3</Description>
              <ID>1</ID>
              <InspectAttributeID>2</InspectAttributeID>
              <LastChanged>2024-05-18T04:40:30.8005622+00:00</LastChanged>
              <UserName>sample string 4</UserName>
            </InspectionAttributeChoice>
          </AttributeChoices>
          <HasChoices>true</HasChoices>
          <Required>true</Required>
        </MobileInspectionAttribute>
      </Attributes>
      <Date>2024-05-18T04:40:30.8005622+00:00</Date>
      <InspectTemplateID>4</InspectTemplateID>
      <Name>sample string 1</Name>
      <QuestionIDs xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:int>1</d4p1:int>
        <d4p1:int>2</d4p1:int>
      </QuestionIDs>
      <SpaceID>1</SpaceID>
      <SpacePath>sample string 5</SpacePath>
      <TargetPercentage>sample string 6</TargetPercentage>
      <Template>sample string 3</Template>
      <Type>sample string 2</Type>
    </MobileInspection>
    <MobileInspection>
      <AccountID>10</AccountID>
      <Code>sample string 13</Code>
      <Color>sample string 14</Color>
      <Description>sample string 8</Description>
      <ID>7</ID>
      <IsEditable>true</IsEditable>
      <IsSelectable>true</IsSelectable>
      <ShortDescription>sample string 15</ShortDescription>
      <Value>sample string 9</Value>
      <Attributes>
        <MobileInspectionAttribute>
          <AccountID>6</AccountID>
          <Code>sample string 9</Code>
          <Color>sample string 10</Color>
          <Description>sample string 4</Description>
          <ID>3</ID>
          <IsEditable>true</IsEditable>
          <IsSelectable>true</IsSelectable>
          <ShortDescription>sample string 11</ShortDescription>
          <Value>sample string 5</Value>
          <AttributeChoices>
            <InspectionAttributeChoice>
              <Description>sample string 3</Description>
              <ID>1</ID>
              <InspectAttributeID>2</InspectAttributeID>
              <LastChanged>2024-05-18T04:40:30.8005622+00:00</LastChanged>
              <UserName>sample string 4</UserName>
            </InspectionAttributeChoice>
            <InspectionAttributeChoice>
              <Description>sample string 3</Description>
              <ID>1</ID>
              <InspectAttributeID>2</InspectAttributeID>
              <LastChanged>2024-05-18T04:40:30.8005622+00:00</LastChanged>
              <UserName>sample string 4</UserName>
            </InspectionAttributeChoice>
          </AttributeChoices>
          <HasChoices>true</HasChoices>
          <Required>true</Required>
        </MobileInspectionAttribute>
        <MobileInspectionAttribute>
          <AccountID>6</AccountID>
          <Code>sample string 9</Code>
          <Color>sample string 10</Color>
          <Description>sample string 4</Description>
          <ID>3</ID>
          <IsEditable>true</IsEditable>
          <IsSelectable>true</IsSelectable>
          <ShortDescription>sample string 11</ShortDescription>
          <Value>sample string 5</Value>
          <AttributeChoices>
            <InspectionAttributeChoice>
              <Description>sample string 3</Description>
              <ID>1</ID>
              <InspectAttributeID>2</InspectAttributeID>
              <LastChanged>2024-05-18T04:40:30.8005622+00:00</LastChanged>
              <UserName>sample string 4</UserName>
            </InspectionAttributeChoice>
            <InspectionAttributeChoice>
              <Description>sample string 3</Description>
              <ID>1</ID>
              <InspectAttributeID>2</InspectAttributeID>
              <LastChanged>2024-05-18T04:40:30.8005622+00:00</LastChanged>
              <UserName>sample string 4</UserName>
            </InspectionAttributeChoice>
          </AttributeChoices>
          <HasChoices>true</HasChoices>
          <Required>true</Required>
        </MobileInspectionAttribute>
      </Attributes>
      <Date>2024-05-18T04:40:30.8005622+00:00</Date>
      <InspectTemplateID>4</InspectTemplateID>
      <Name>sample string 1</Name>
      <QuestionIDs xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:int>1</d4p1:int>
        <d4p1:int>2</d4p1:int>
      </QuestionIDs>
      <SpaceID>1</SpaceID>
      <SpacePath>sample string 5</SpacePath>
      <TargetPercentage>sample string 6</TargetPercentage>
      <Template>sample string 3</Template>
      <Type>sample string 2</Type>
    </MobileInspection>
  </Inspections>
  <Questions>
    <MobileInspectionQuestion>
      <AccountID>9</AccountID>
      <Code>sample string 12</Code>
      <Color>sample string 13</Color>
      <Description>sample string 7</Description>
      <ID>6</ID>
      <IsEditable>true</IsEditable>
      <IsSelectable>true</IsSelectable>
      <ShortDescription>sample string 14</ShortDescription>
      <Value>sample string 8</Value>
      <AllowNA>true</AllowNA>
      <CommentRequired>true</CommentRequired>
      <Comments>
        <InspectionComment>
          <AccountID>3</AccountID>
          <Description>sample string 2</Description>
          <ID>1</ID>
          <IsSelectable>true</IsSelectable>
          <LastChanged>2024-05-18T04:40:30.8005622+00:00</LastChanged>
          <UserName>sample string 5</UserName>
        </InspectionComment>
        <InspectionComment>
          <AccountID>3</AccountID>
          <Description>sample string 2</Description>
          <ID>1</ID>
          <IsSelectable>true</IsSelectable>
          <LastChanged>2024-05-18T04:40:30.8005622+00:00</LastChanged>
          <UserName>sample string 5</UserName>
        </InspectionComment>
      </Comments>
      <Order>3</Order>
      <ScoreChoices>
        <InspectionScoreTypeChoice>
          <Description>sample string 2</Description>
          <ID>1</ID>
          <InspectScoreTypeID>5</InspectScoreTypeID>
          <LastChanged>2024-05-18T04:40:30.8005622+00:00</LastChanged>
          <UserName>sample string 4</UserName>
          <Value>3</Value>
        </InspectionScoreTypeChoice>
        <InspectionScoreTypeChoice>
          <Description>sample string 2</Description>
          <ID>1</ID>
          <InspectScoreTypeID>5</InspectScoreTypeID>
          <LastChanged>2024-05-18T04:40:30.8005622+00:00</LastChanged>
          <UserName>sample string 4</UserName>
          <Value>3</Value>
        </InspectionScoreTypeChoice>
      </ScoreChoices>
      <ScoreTypeID>4</ScoreTypeID>
      <Weight>1</Weight>
    </MobileInspectionQuestion>
    <MobileInspectionQuestion>
      <AccountID>9</AccountID>
      <Code>sample string 12</Code>
      <Color>sample string 13</Color>
      <Description>sample string 7</Description>
      <ID>6</ID>
      <IsEditable>true</IsEditable>
      <IsSelectable>true</IsSelectable>
      <ShortDescription>sample string 14</ShortDescription>
      <Value>sample string 8</Value>
      <AllowNA>true</AllowNA>
      <CommentRequired>true</CommentRequired>
      <Comments>
        <InspectionComment>
          <AccountID>3</AccountID>
          <Description>sample string 2</Description>
          <ID>1</ID>
          <IsSelectable>true</IsSelectable>
          <LastChanged>2024-05-18T04:40:30.8005622+00:00</LastChanged>
          <UserName>sample string 5</UserName>
        </InspectionComment>
        <InspectionComment>
          <AccountID>3</AccountID>
          <Description>sample string 2</Description>
          <ID>1</ID>
          <IsSelectable>true</IsSelectable>
          <LastChanged>2024-05-18T04:40:30.8005622+00:00</LastChanged>
          <UserName>sample string 5</UserName>
        </InspectionComment>
      </Comments>
      <Order>3</Order>
      <ScoreChoices>
        <InspectionScoreTypeChoice>
          <Description>sample string 2</Description>
          <ID>1</ID>
          <InspectScoreTypeID>5</InspectScoreTypeID>
          <LastChanged>2024-05-18T04:40:30.8005622+00:00</LastChanged>
          <UserName>sample string 4</UserName>
          <Value>3</Value>
        </InspectionScoreTypeChoice>
        <InspectionScoreTypeChoice>
          <Description>sample string 2</Description>
          <ID>1</ID>
          <InspectScoreTypeID>5</InspectScoreTypeID>
          <LastChanged>2024-05-18T04:40:30.8005622+00:00</LastChanged>
          <UserName>sample string 4</UserName>
          <Value>3</Value>
        </InspectionScoreTypeChoice>
      </ScoreChoices>
      <ScoreTypeID>4</ScoreTypeID>
      <Weight>1</Weight>
    </MobileInspectionQuestion>
  </Questions>
</MobileScheduledInspectionsPackage>