POST api/Inspection/inspection

Saves a scored Inspection back to the system

Request Information

URI Parameters

None.

Body Parameters

The scored Inspection data to save

Collection of MobileInspectionHistory
NameDescriptionTypeAdditional information
TemplateDescription

string

None.

TemplateID

integer

None.

TargetPercentage

integer

None.

ScoredPercentage

integer

None.

ScheduledDate

date

None.

InspectionDate

date

None.

UserName

string

None.

LastChanged

date

None.

InspectionTargetID

integer

None.

TypeID

integer

None.

WorkerID

integer

None.

InspectorID

integer

None.

SpaceID

integer

None.

Tour

boolean

None.

StartTime

date

None.

AdHoc

boolean

None.

Customer

string

None.

Comments

string

None.

AssetID

integer

None.

WorkRequestID

integer

None.

RecreateFlag

boolean

None.

Name

string

None.

Worker

string

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.

ISISInspectionHistoryQuestions

Collection of MobileInspectionHistoryQuestion

None.

ISISInspectionHistoryAttributes

Collection of MobileInspectionHistoryAttribute

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "ISISInspectionHistoryQuestions": [
      {
        "CorporateID": 1,
        "Order": 1,
        "Weight": 2,
        "MinimumScore": 3,
        "MaximumScore": 4,
        "Score": 1,
        "Comment": "sample string 5",
        "UserName": "sample string 6",
        "LastChanged": "2024-05-18T06:42:47.810049Z",
        "ScoreTypeID": 7,
        "HistoryID": 8,
        "ActualValue": 9,
        "QuestionID": 10,
        "chosenComment": "sample string 11",
        "CommentRequired": true,
        "ID": 13,
        "Description": "sample string 14",
        "Value": "sample string 15",
        "EnDescription": "samplestring14",
        "AccountID": 16,
        "IsEditable": true,
        "IsSelectable": true,
        "Code": "sample string 19",
        "Color": "sample string 20",
        "ShortDescription": "sample string 21"
      },
      {
        "CorporateID": 1,
        "Order": 1,
        "Weight": 2,
        "MinimumScore": 3,
        "MaximumScore": 4,
        "Score": 1,
        "Comment": "sample string 5",
        "UserName": "sample string 6",
        "LastChanged": "2024-05-18T06:42:47.810049Z",
        "ScoreTypeID": 7,
        "HistoryID": 8,
        "ActualValue": 9,
        "QuestionID": 10,
        "chosenComment": "sample string 11",
        "CommentRequired": true,
        "ID": 13,
        "Description": "sample string 14",
        "Value": "sample string 15",
        "EnDescription": "samplestring14",
        "AccountID": 16,
        "IsEditable": true,
        "IsSelectable": true,
        "Code": "sample string 19",
        "Color": "sample string 20",
        "ShortDescription": "sample string 21"
      }
    ],
    "ISISInspectionHistoryAttributes": [
      {
        "ID": 1,
        "Description": "sample string 2",
        "EnDescription": "samplestring2",
        "Value": "sample string 3",
        "UserName": "sample string 4",
        "LastChanged": "2024-05-18T06:42:47.810049Z",
        "Required": true,
        "ISISID": 6
      },
      {
        "ID": 1,
        "Description": "sample string 2",
        "EnDescription": "samplestring2",
        "Value": "sample string 3",
        "UserName": "sample string 4",
        "LastChanged": "2024-05-18T06:42:47.810049Z",
        "Required": true,
        "ISISID": 6
      }
    ],
    "TemplateDescription": "sample string 1",
    "TemplateID": 1,
    "TargetPercentage": 1,
    "ScoredPercentage": 1,
    "ScheduledDate": "2024-05-18T06:42:47.810049Z",
    "InspectionDate": "2024-05-18T06:42:47.810049Z",
    "UserName": "sample string 2",
    "LastChanged": "2024-05-18T06:42:47.810049Z",
    "InspectionTargetID": 3,
    "TypeID": 4,
    "WorkerID": 1,
    "InspectorID": 1,
    "SpaceID": 1,
    "Tour": true,
    "StartTime": "2024-05-18T06:42:47.810049Z",
    "AdHoc": true,
    "Customer": "sample string 8",
    "Comments": "sample string 9",
    "AssetID": 1,
    "WorkRequestID": 1,
    "RecreateFlag": true,
    "Name": "sample string 11",
    "Worker": "sample string 12",
    "ID": 13,
    "Description": "sample string 14",
    "Value": "sample string 15",
    "EnDescription": "samplestring14",
    "AccountID": 16,
    "IsEditable": true,
    "IsSelectable": true,
    "Code": "sample string 19",
    "Color": "sample string 20",
    "ShortDescription": "sample string 21"
  },
  {
    "ISISInspectionHistoryQuestions": [
      {
        "CorporateID": 1,
        "Order": 1,
        "Weight": 2,
        "MinimumScore": 3,
        "MaximumScore": 4,
        "Score": 1,
        "Comment": "sample string 5",
        "UserName": "sample string 6",
        "LastChanged": "2024-05-18T06:42:47.810049Z",
        "ScoreTypeID": 7,
        "HistoryID": 8,
        "ActualValue": 9,
        "QuestionID": 10,
        "chosenComment": "sample string 11",
        "CommentRequired": true,
        "ID": 13,
        "Description": "sample string 14",
        "Value": "sample string 15",
        "EnDescription": "samplestring14",
        "AccountID": 16,
        "IsEditable": true,
        "IsSelectable": true,
        "Code": "sample string 19",
        "Color": "sample string 20",
        "ShortDescription": "sample string 21"
      },
      {
        "CorporateID": 1,
        "Order": 1,
        "Weight": 2,
        "MinimumScore": 3,
        "MaximumScore": 4,
        "Score": 1,
        "Comment": "sample string 5",
        "UserName": "sample string 6",
        "LastChanged": "2024-05-18T06:42:47.810049Z",
        "ScoreTypeID": 7,
        "HistoryID": 8,
        "ActualValue": 9,
        "QuestionID": 10,
        "chosenComment": "sample string 11",
        "CommentRequired": true,
        "ID": 13,
        "Description": "sample string 14",
        "Value": "sample string 15",
        "EnDescription": "samplestring14",
        "AccountID": 16,
        "IsEditable": true,
        "IsSelectable": true,
        "Code": "sample string 19",
        "Color": "sample string 20",
        "ShortDescription": "sample string 21"
      }
    ],
    "ISISInspectionHistoryAttributes": [
      {
        "ID": 1,
        "Description": "sample string 2",
        "EnDescription": "samplestring2",
        "Value": "sample string 3",
        "UserName": "sample string 4",
        "LastChanged": "2024-05-18T06:42:47.810049Z",
        "Required": true,
        "ISISID": 6
      },
      {
        "ID": 1,
        "Description": "sample string 2",
        "EnDescription": "samplestring2",
        "Value": "sample string 3",
        "UserName": "sample string 4",
        "LastChanged": "2024-05-18T06:42:47.810049Z",
        "Required": true,
        "ISISID": 6
      }
    ],
    "TemplateDescription": "sample string 1",
    "TemplateID": 1,
    "TargetPercentage": 1,
    "ScoredPercentage": 1,
    "ScheduledDate": "2024-05-18T06:42:47.810049Z",
    "InspectionDate": "2024-05-18T06:42:47.810049Z",
    "UserName": "sample string 2",
    "LastChanged": "2024-05-18T06:42:47.810049Z",
    "InspectionTargetID": 3,
    "TypeID": 4,
    "WorkerID": 1,
    "InspectorID": 1,
    "SpaceID": 1,
    "Tour": true,
    "StartTime": "2024-05-18T06:42:47.810049Z",
    "AdHoc": true,
    "Customer": "sample string 8",
    "Comments": "sample string 9",
    "AssetID": 1,
    "WorkRequestID": 1,
    "RecreateFlag": true,
    "Name": "sample string 11",
    "Worker": "sample string 12",
    "ID": 13,
    "Description": "sample string 14",
    "Value": "sample string 15",
    "EnDescription": "samplestring14",
    "AccountID": 16,
    "IsEditable": true,
    "IsSelectable": true,
    "Code": "sample string 19",
    "Color": "sample string 20",
    "ShortDescription": "sample string 21"
  }
]

application/xml, text/xml

Sample:
<ArrayOfMobileInspectionHistory xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Aramark.ISIS.Domain.Models">
  <MobileInspectionHistory>
    <AccountID>16</AccountID>
    <Code>sample string 19</Code>
    <Color>sample string 20</Color>
    <Description>sample string 14</Description>
    <ID>13</ID>
    <IsEditable>true</IsEditable>
    <IsSelectable>true</IsSelectable>
    <ShortDescription>sample string 21</ShortDescription>
    <Value>sample string 15</Value>
    <AdHoc>true</AdHoc>
    <AssetID>1</AssetID>
    <Comments>sample string 9</Comments>
    <Customer>sample string 8</Customer>
    <ISISInspectionHistoryAttributes>
      <MobileInspectionHistoryAttribute>
        <Description>sample string 2</Description>
        <ID>1</ID>
        <ISISID>6</ISISID>
        <LastChanged>2024-05-18T06:42:47.810049+00:00</LastChanged>
        <Required>true</Required>
        <UserName>sample string 4</UserName>
        <Value>sample string 3</Value>
      </MobileInspectionHistoryAttribute>
      <MobileInspectionHistoryAttribute>
        <Description>sample string 2</Description>
        <ID>1</ID>
        <ISISID>6</ISISID>
        <LastChanged>2024-05-18T06:42:47.810049+00:00</LastChanged>
        <Required>true</Required>
        <UserName>sample string 4</UserName>
        <Value>sample string 3</Value>
      </MobileInspectionHistoryAttribute>
    </ISISInspectionHistoryAttributes>
    <ISISInspectionHistoryQuestions>
      <MobileInspectionHistoryQuestion>
        <AccountID>16</AccountID>
        <Code>sample string 19</Code>
        <Color>sample string 20</Color>
        <Description>sample string 14</Description>
        <ID>13</ID>
        <IsEditable>true</IsEditable>
        <IsSelectable>true</IsSelectable>
        <ShortDescription>sample string 21</ShortDescription>
        <Value>sample string 15</Value>
        <ActualValue>9</ActualValue>
        <Comment>sample string 5</Comment>
        <CommentRequired>true</CommentRequired>
        <CorporateID>1</CorporateID>
        <HistoryID>8</HistoryID>
        <LastChanged>2024-05-18T06:42:47.810049+00:00</LastChanged>
        <MaximumScore>4</MaximumScore>
        <MinimumScore>3</MinimumScore>
        <Order>1</Order>
        <QuestionID>10</QuestionID>
        <Score>1</Score>
        <ScoreTypeID>7</ScoreTypeID>
        <UserName>sample string 6</UserName>
        <Weight>2</Weight>
        <chosenComment>sample string 11</chosenComment>
      </MobileInspectionHistoryQuestion>
      <MobileInspectionHistoryQuestion>
        <AccountID>16</AccountID>
        <Code>sample string 19</Code>
        <Color>sample string 20</Color>
        <Description>sample string 14</Description>
        <ID>13</ID>
        <IsEditable>true</IsEditable>
        <IsSelectable>true</IsSelectable>
        <ShortDescription>sample string 21</ShortDescription>
        <Value>sample string 15</Value>
        <ActualValue>9</ActualValue>
        <Comment>sample string 5</Comment>
        <CommentRequired>true</CommentRequired>
        <CorporateID>1</CorporateID>
        <HistoryID>8</HistoryID>
        <LastChanged>2024-05-18T06:42:47.810049+00:00</LastChanged>
        <MaximumScore>4</MaximumScore>
        <MinimumScore>3</MinimumScore>
        <Order>1</Order>
        <QuestionID>10</QuestionID>
        <Score>1</Score>
        <ScoreTypeID>7</ScoreTypeID>
        <UserName>sample string 6</UserName>
        <Weight>2</Weight>
        <chosenComment>sample string 11</chosenComment>
      </MobileInspectionHistoryQuestion>
    </ISISInspectionHistoryQuestions>
    <InspectionDate>2024-05-18T06:42:47.810049+00:00</InspectionDate>
    <InspectionTargetID>3</InspectionTargetID>
    <InspectorID>1</InspectorID>
    <LastChanged>2024-05-18T06:42:47.810049+00:00</LastChanged>
    <Name>sample string 11</Name>
    <RecreateFlag>true</RecreateFlag>
    <ScheduledDate>2024-05-18T06:42:47.810049+00:00</ScheduledDate>
    <ScoredPercentage>1</ScoredPercentage>
    <SpaceID>1</SpaceID>
    <StartTime>2024-05-18T06:42:47.810049+00:00</StartTime>
    <TargetPercentage>1</TargetPercentage>
    <TemplateDescription>sample string 1</TemplateDescription>
    <TemplateID>1</TemplateID>
    <Tour>true</Tour>
    <TypeID>4</TypeID>
    <UserName>sample string 2</UserName>
    <WorkRequestID>1</WorkRequestID>
    <Worker>sample string 12</Worker>
    <WorkerID>1</WorkerID>
  </MobileInspectionHistory>
  <MobileInspectionHistory>
    <AccountID>16</AccountID>
    <Code>sample string 19</Code>
    <Color>sample string 20</Color>
    <Description>sample string 14</Description>
    <ID>13</ID>
    <IsEditable>true</IsEditable>
    <IsSelectable>true</IsSelectable>
    <ShortDescription>sample string 21</ShortDescription>
    <Value>sample string 15</Value>
    <AdHoc>true</AdHoc>
    <AssetID>1</AssetID>
    <Comments>sample string 9</Comments>
    <Customer>sample string 8</Customer>
    <ISISInspectionHistoryAttributes>
      <MobileInspectionHistoryAttribute>
        <Description>sample string 2</Description>
        <ID>1</ID>
        <ISISID>6</ISISID>
        <LastChanged>2024-05-18T06:42:47.810049+00:00</LastChanged>
        <Required>true</Required>
        <UserName>sample string 4</UserName>
        <Value>sample string 3</Value>
      </MobileInspectionHistoryAttribute>
      <MobileInspectionHistoryAttribute>
        <Description>sample string 2</Description>
        <ID>1</ID>
        <ISISID>6</ISISID>
        <LastChanged>2024-05-18T06:42:47.810049+00:00</LastChanged>
        <Required>true</Required>
        <UserName>sample string 4</UserName>
        <Value>sample string 3</Value>
      </MobileInspectionHistoryAttribute>
    </ISISInspectionHistoryAttributes>
    <ISISInspectionHistoryQuestions>
      <MobileInspectionHistoryQuestion>
        <AccountID>16</AccountID>
        <Code>sample string 19</Code>
        <Color>sample string 20</Color>
        <Description>sample string 14</Description>
        <ID>13</ID>
        <IsEditable>true</IsEditable>
        <IsSelectable>true</IsSelectable>
        <ShortDescription>sample string 21</ShortDescription>
        <Value>sample string 15</Value>
        <ActualValue>9</ActualValue>
        <Comment>sample string 5</Comment>
        <CommentRequired>true</CommentRequired>
        <CorporateID>1</CorporateID>
        <HistoryID>8</HistoryID>
        <LastChanged>2024-05-18T06:42:47.810049+00:00</LastChanged>
        <MaximumScore>4</MaximumScore>
        <MinimumScore>3</MinimumScore>
        <Order>1</Order>
        <QuestionID>10</QuestionID>
        <Score>1</Score>
        <ScoreTypeID>7</ScoreTypeID>
        <UserName>sample string 6</UserName>
        <Weight>2</Weight>
        <chosenComment>sample string 11</chosenComment>
      </MobileInspectionHistoryQuestion>
      <MobileInspectionHistoryQuestion>
        <AccountID>16</AccountID>
        <Code>sample string 19</Code>
        <Color>sample string 20</Color>
        <Description>sample string 14</Description>
        <ID>13</ID>
        <IsEditable>true</IsEditable>
        <IsSelectable>true</IsSelectable>
        <ShortDescription>sample string 21</ShortDescription>
        <Value>sample string 15</Value>
        <ActualValue>9</ActualValue>
        <Comment>sample string 5</Comment>
        <CommentRequired>true</CommentRequired>
        <CorporateID>1</CorporateID>
        <HistoryID>8</HistoryID>
        <LastChanged>2024-05-18T06:42:47.810049+00:00</LastChanged>
        <MaximumScore>4</MaximumScore>
        <MinimumScore>3</MinimumScore>
        <Order>1</Order>
        <QuestionID>10</QuestionID>
        <Score>1</Score>
        <ScoreTypeID>7</ScoreTypeID>
        <UserName>sample string 6</UserName>
        <Weight>2</Weight>
        <chosenComment>sample string 11</chosenComment>
      </MobileInspectionHistoryQuestion>
    </ISISInspectionHistoryQuestions>
    <InspectionDate>2024-05-18T06:42:47.810049+00:00</InspectionDate>
    <InspectionTargetID>3</InspectionTargetID>
    <InspectorID>1</InspectorID>
    <LastChanged>2024-05-18T06:42:47.810049+00:00</LastChanged>
    <Name>sample string 11</Name>
    <RecreateFlag>true</RecreateFlag>
    <ScheduledDate>2024-05-18T06:42:47.810049+00:00</ScheduledDate>
    <ScoredPercentage>1</ScoredPercentage>
    <SpaceID>1</SpaceID>
    <StartTime>2024-05-18T06:42:47.810049+00:00</StartTime>
    <TargetPercentage>1</TargetPercentage>
    <TemplateDescription>sample string 1</TemplateDescription>
    <TemplateID>1</TemplateID>
    <Tour>true</Tour>
    <TypeID>4</TypeID>
    <UserName>sample string 2</UserName>
    <WorkRequestID>1</WorkRequestID>
    <Worker>sample string 12</Worker>
    <WorkerID>1</WorkerID>
  </MobileInspectionHistory>
</ArrayOfMobileInspectionHistory>

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 'List`1'.

Response Information

Resource Description

True if successful, False otherwise

boolean

Response Formats

application/json, text/json

Sample:
true

application/xml, text/xml

Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>