POST api/Inspection/mobileinspections

Saves a scored Inspection back to the system

Request Information

URI Parameters

None.

Body Parameters

Collection of MobileInspectionScoredInspection
NameDescriptionTypeAdditional information
TargetPercentage

integer

None.

ScoredPercentage

integer

None.

ScheduledDate

date

None.

InspectionDate

date

None.

InspectionTemplateID

integer

None.

InspectionTemplateDesc

string

None.

InspectionTargetID

integer

None.

InspectionTypeID

integer

None.

InspectorEmployeeID

integer

None.

WorkerEmployeeID

integer

None.

AssetID

integer

None.

SpaceID

integer

None.

WRID

integer

None.

AdHoc

boolean

None.

Complete

boolean

None.

Tour

boolean

None.

TourName

string

None.

StartTime

date

None.

Custom

string

None.

Customer

string

None.

Comments

string

None.

GeoLongitude

decimal number

None.

GeoLatitude

decimal number

None.

Recreate

boolean

None.

UserName

string

None.

LastChangedDate

date

None.

Emails

Collection of string

None.

SendToDistributionList

boolean

None.

RegenerateInspection

boolean

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.

Questions

Collection of MobileInspectionScoredInspectionQuestion

None.

Attributes

Collection of MobileInspectionScoredInspectionAttribute

None.

Attachments

Collection of MobileInspectionAttachment

None.

AuditItems

Collection of MobileInspectionAuditItem

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "Questions": [
      {
        "Attachments": [
          {
            "AccountID": 1,
            "InspectionHistoryID": 2,
            "QuestionID": 1,
            "AttachmentType": "sample string 3",
            "AttachmentName": "sample string 4",
            "AttachmentContent": "QEA=",
            "UserName": "sample string 5",
            "LastChangedDate": "2024-05-18T03:43:51.7866192Z"
          },
          {
            "AccountID": 1,
            "InspectionHistoryID": 2,
            "QuestionID": 1,
            "AttachmentType": "sample string 3",
            "AttachmentName": "sample string 4",
            "AttachmentContent": "QEA=",
            "UserName": "sample string 5",
            "LastChangedDate": "2024-05-18T03:43:51.7866192Z"
          }
        ],
        "AuditItems": [
          {
            "ID": 1,
            "Description": "sample string 2",
            "QLCode": "sample string 3",
            "Weight": 4,
            "Score": 1,
            "FailureCodeID": 1,
            "FailureCodeCorrectiveActionID": 1,
            "QuestionID": 5
          },
          {
            "ID": 1,
            "Description": "sample string 2",
            "QLCode": "sample string 3",
            "Weight": 4,
            "Score": 1,
            "FailureCodeID": 1,
            "FailureCodeCorrectiveActionID": 1,
            "QuestionID": 5
          }
        ],
        "QuestionID": 1,
        "QuestionOrder": 2,
        "Question": "sample string 3",
        "Weight": 4,
        "ScoreMin": 5,
        "ScoreMax": 6,
        "Score": 1,
        "Comments": "sample string 7",
        "HasRequiredComments": true,
        "UserName": "sample string 9",
        "LastChangedDate": "2024-05-18T03:43:51.7709341Z",
        "IsFollowUpQuestion": true,
        "ParentQuestionID": 1,
        "InspectionScoreType": 11,
        "InspectionHistoryID": 12
      },
      {
        "Attachments": [
          {
            "AccountID": 1,
            "InspectionHistoryID": 2,
            "QuestionID": 1,
            "AttachmentType": "sample string 3",
            "AttachmentName": "sample string 4",
            "AttachmentContent": "QEA=",
            "UserName": "sample string 5",
            "LastChangedDate": "2024-05-18T03:43:51.7866192Z"
          },
          {
            "AccountID": 1,
            "InspectionHistoryID": 2,
            "QuestionID": 1,
            "AttachmentType": "sample string 3",
            "AttachmentName": "sample string 4",
            "AttachmentContent": "QEA=",
            "UserName": "sample string 5",
            "LastChangedDate": "2024-05-18T03:43:51.7866192Z"
          }
        ],
        "AuditItems": [
          {
            "ID": 1,
            "Description": "sample string 2",
            "QLCode": "sample string 3",
            "Weight": 4,
            "Score": 1,
            "FailureCodeID": 1,
            "FailureCodeCorrectiveActionID": 1,
            "QuestionID": 5
          },
          {
            "ID": 1,
            "Description": "sample string 2",
            "QLCode": "sample string 3",
            "Weight": 4,
            "Score": 1,
            "FailureCodeID": 1,
            "FailureCodeCorrectiveActionID": 1,
            "QuestionID": 5
          }
        ],
        "QuestionID": 1,
        "QuestionOrder": 2,
        "Question": "sample string 3",
        "Weight": 4,
        "ScoreMin": 5,
        "ScoreMax": 6,
        "Score": 1,
        "Comments": "sample string 7",
        "HasRequiredComments": true,
        "UserName": "sample string 9",
        "LastChangedDate": "2024-05-18T03:43:51.7709341Z",
        "IsFollowUpQuestion": true,
        "ParentQuestionID": 1,
        "InspectionScoreType": 11,
        "InspectionHistoryID": 12
      }
    ],
    "Attributes": [
      {
        "AttributeID": 1,
        "FieldName": "sample string 2",
        "FieldValue": "sample string 3",
        "IsRequired": true,
        "UserName": "sample string 5",
        "LastChangedDate": "2024-05-18T03:43:51.7866192Z",
        "InspectionHistoryID": 6
      },
      {
        "AttributeID": 1,
        "FieldName": "sample string 2",
        "FieldValue": "sample string 3",
        "IsRequired": true,
        "UserName": "sample string 5",
        "LastChangedDate": "2024-05-18T03:43:51.7866192Z",
        "InspectionHistoryID": 6
      }
    ],
    "Attachments": [
      {
        "AccountID": 1,
        "InspectionHistoryID": 2,
        "QuestionID": 1,
        "AttachmentType": "sample string 3",
        "AttachmentName": "sample string 4",
        "AttachmentContent": "QEA=",
        "UserName": "sample string 5",
        "LastChangedDate": "2024-05-18T03:43:51.7866192Z"
      },
      {
        "AccountID": 1,
        "InspectionHistoryID": 2,
        "QuestionID": 1,
        "AttachmentType": "sample string 3",
        "AttachmentName": "sample string 4",
        "AttachmentContent": "QEA=",
        "UserName": "sample string 5",
        "LastChangedDate": "2024-05-18T03:43:51.7866192Z"
      }
    ],
    "AuditItems": [
      {
        "ID": 1,
        "Description": "sample string 2",
        "QLCode": "sample string 3",
        "Weight": 4,
        "Score": 1,
        "FailureCodeID": 1,
        "FailureCodeCorrectiveActionID": 1,
        "QuestionID": 5
      },
      {
        "ID": 1,
        "Description": "sample string 2",
        "QLCode": "sample string 3",
        "Weight": 4,
        "Score": 1,
        "FailureCodeID": 1,
        "FailureCodeCorrectiveActionID": 1,
        "QuestionID": 5
      }
    ],
    "TargetPercentage": 1,
    "ScoredPercentage": 1,
    "ScheduledDate": "2024-05-18T03:43:51.7709341Z",
    "InspectionDate": "2024-05-18T03:43:51.7709341Z",
    "InspectionTemplateID": 1,
    "InspectionTemplateDesc": "sample string 2",
    "InspectionTargetID": 3,
    "InspectionTypeID": 4,
    "InspectorEmployeeID": 1,
    "WorkerEmployeeID": 1,
    "AssetID": 1,
    "SpaceID": 1,
    "WRID": 1,
    "AdHoc": true,
    "Complete": true,
    "Tour": true,
    "TourName": "sample string 8",
    "StartTime": "2024-05-18T03:43:51.7709341Z",
    "Custom": "sample string 9",
    "Customer": "sample string 10",
    "Comments": "sample string 11",
    "GeoLongitude": 1.0,
    "GeoLatitude": 1.0,
    "Recreate": true,
    "UserName": "sample string 13",
    "LastChangedDate": "2024-05-18T03:43:51.7709341Z",
    "Emails": [
      "sample string 1",
      "sample string 2"
    ],
    "SendToDistributionList": true,
    "RegenerateInspection": true,
    "ID": 16,
    "Description": "sample string 17",
    "Value": "sample string 18",
    "EnDescription": "samplestring17",
    "AccountID": 19,
    "IsEditable": true,
    "IsSelectable": true,
    "Code": "sample string 22",
    "Color": "sample string 23",
    "ShortDescription": "sample string 24"
  },
  {
    "Questions": [
      {
        "Attachments": [
          {
            "AccountID": 1,
            "InspectionHistoryID": 2,
            "QuestionID": 1,
            "AttachmentType": "sample string 3",
            "AttachmentName": "sample string 4",
            "AttachmentContent": "QEA=",
            "UserName": "sample string 5",
            "LastChangedDate": "2024-05-18T03:43:51.7866192Z"
          },
          {
            "AccountID": 1,
            "InspectionHistoryID": 2,
            "QuestionID": 1,
            "AttachmentType": "sample string 3",
            "AttachmentName": "sample string 4",
            "AttachmentContent": "QEA=",
            "UserName": "sample string 5",
            "LastChangedDate": "2024-05-18T03:43:51.7866192Z"
          }
        ],
        "AuditItems": [
          {
            "ID": 1,
            "Description": "sample string 2",
            "QLCode": "sample string 3",
            "Weight": 4,
            "Score": 1,
            "FailureCodeID": 1,
            "FailureCodeCorrectiveActionID": 1,
            "QuestionID": 5
          },
          {
            "ID": 1,
            "Description": "sample string 2",
            "QLCode": "sample string 3",
            "Weight": 4,
            "Score": 1,
            "FailureCodeID": 1,
            "FailureCodeCorrectiveActionID": 1,
            "QuestionID": 5
          }
        ],
        "QuestionID": 1,
        "QuestionOrder": 2,
        "Question": "sample string 3",
        "Weight": 4,
        "ScoreMin": 5,
        "ScoreMax": 6,
        "Score": 1,
        "Comments": "sample string 7",
        "HasRequiredComments": true,
        "UserName": "sample string 9",
        "LastChangedDate": "2024-05-18T03:43:51.7709341Z",
        "IsFollowUpQuestion": true,
        "ParentQuestionID": 1,
        "InspectionScoreType": 11,
        "InspectionHistoryID": 12
      },
      {
        "Attachments": [
          {
            "AccountID": 1,
            "InspectionHistoryID": 2,
            "QuestionID": 1,
            "AttachmentType": "sample string 3",
            "AttachmentName": "sample string 4",
            "AttachmentContent": "QEA=",
            "UserName": "sample string 5",
            "LastChangedDate": "2024-05-18T03:43:51.7866192Z"
          },
          {
            "AccountID": 1,
            "InspectionHistoryID": 2,
            "QuestionID": 1,
            "AttachmentType": "sample string 3",
            "AttachmentName": "sample string 4",
            "AttachmentContent": "QEA=",
            "UserName": "sample string 5",
            "LastChangedDate": "2024-05-18T03:43:51.7866192Z"
          }
        ],
        "AuditItems": [
          {
            "ID": 1,
            "Description": "sample string 2",
            "QLCode": "sample string 3",
            "Weight": 4,
            "Score": 1,
            "FailureCodeID": 1,
            "FailureCodeCorrectiveActionID": 1,
            "QuestionID": 5
          },
          {
            "ID": 1,
            "Description": "sample string 2",
            "QLCode": "sample string 3",
            "Weight": 4,
            "Score": 1,
            "FailureCodeID": 1,
            "FailureCodeCorrectiveActionID": 1,
            "QuestionID": 5
          }
        ],
        "QuestionID": 1,
        "QuestionOrder": 2,
        "Question": "sample string 3",
        "Weight": 4,
        "ScoreMin": 5,
        "ScoreMax": 6,
        "Score": 1,
        "Comments": "sample string 7",
        "HasRequiredComments": true,
        "UserName": "sample string 9",
        "LastChangedDate": "2024-05-18T03:43:51.7709341Z",
        "IsFollowUpQuestion": true,
        "ParentQuestionID": 1,
        "InspectionScoreType": 11,
        "InspectionHistoryID": 12
      }
    ],
    "Attributes": [
      {
        "AttributeID": 1,
        "FieldName": "sample string 2",
        "FieldValue": "sample string 3",
        "IsRequired": true,
        "UserName": "sample string 5",
        "LastChangedDate": "2024-05-18T03:43:51.7866192Z",
        "InspectionHistoryID": 6
      },
      {
        "AttributeID": 1,
        "FieldName": "sample string 2",
        "FieldValue": "sample string 3",
        "IsRequired": true,
        "UserName": "sample string 5",
        "LastChangedDate": "2024-05-18T03:43:51.7866192Z",
        "InspectionHistoryID": 6
      }
    ],
    "Attachments": [
      {
        "AccountID": 1,
        "InspectionHistoryID": 2,
        "QuestionID": 1,
        "AttachmentType": "sample string 3",
        "AttachmentName": "sample string 4",
        "AttachmentContent": "QEA=",
        "UserName": "sample string 5",
        "LastChangedDate": "2024-05-18T03:43:51.7866192Z"
      },
      {
        "AccountID": 1,
        "InspectionHistoryID": 2,
        "QuestionID": 1,
        "AttachmentType": "sample string 3",
        "AttachmentName": "sample string 4",
        "AttachmentContent": "QEA=",
        "UserName": "sample string 5",
        "LastChangedDate": "2024-05-18T03:43:51.7866192Z"
      }
    ],
    "AuditItems": [
      {
        "ID": 1,
        "Description": "sample string 2",
        "QLCode": "sample string 3",
        "Weight": 4,
        "Score": 1,
        "FailureCodeID": 1,
        "FailureCodeCorrectiveActionID": 1,
        "QuestionID": 5
      },
      {
        "ID": 1,
        "Description": "sample string 2",
        "QLCode": "sample string 3",
        "Weight": 4,
        "Score": 1,
        "FailureCodeID": 1,
        "FailureCodeCorrectiveActionID": 1,
        "QuestionID": 5
      }
    ],
    "TargetPercentage": 1,
    "ScoredPercentage": 1,
    "ScheduledDate": "2024-05-18T03:43:51.7709341Z",
    "InspectionDate": "2024-05-18T03:43:51.7709341Z",
    "InspectionTemplateID": 1,
    "InspectionTemplateDesc": "sample string 2",
    "InspectionTargetID": 3,
    "InspectionTypeID": 4,
    "InspectorEmployeeID": 1,
    "WorkerEmployeeID": 1,
    "AssetID": 1,
    "SpaceID": 1,
    "WRID": 1,
    "AdHoc": true,
    "Complete": true,
    "Tour": true,
    "TourName": "sample string 8",
    "StartTime": "2024-05-18T03:43:51.7709341Z",
    "Custom": "sample string 9",
    "Customer": "sample string 10",
    "Comments": "sample string 11",
    "GeoLongitude": 1.0,
    "GeoLatitude": 1.0,
    "Recreate": true,
    "UserName": "sample string 13",
    "LastChangedDate": "2024-05-18T03:43:51.7709341Z",
    "Emails": [
      "sample string 1",
      "sample string 2"
    ],
    "SendToDistributionList": true,
    "RegenerateInspection": true,
    "ID": 16,
    "Description": "sample string 17",
    "Value": "sample string 18",
    "EnDescription": "samplestring17",
    "AccountID": 19,
    "IsEditable": true,
    "IsSelectable": true,
    "Code": "sample string 22",
    "Color": "sample string 23",
    "ShortDescription": "sample string 24"
  }
]

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Type 'Aramark.ISIS.Domain.Models.MobileInspectionScoredInspection' cannot inherit from a type that is not marked with DataContractAttribute or SerializableAttribute. Consider marking the base type 'Aramark.ISIS.Domain.Models.SimpleItem' with DataContractAttribute or SerializableAttribute, or removing them from the derived type.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Type 'Aramark.ISIS.Domain.Models.MobileInspectionScoredInspection' cannot inherit from a type that is not marked with DataContractAttribute or SerializableAttribute. Consider marking the base type 'Aramark.ISIS.Domain.Models.SimpleItem' with DataContractAttribute or SerializableAttribute, or removing them from the derived type.

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>