POST api/Inspections

Request Information

URI Parameters

None.

Body Parameters

InspectionCreateUpdateModel
NameDescriptionTypeAdditional information
Id

integer

None.

InspectionTemplateId

integer

None.

AccountId

integer

None.

Title

string

None.

Description

string

None.

InspectorId

string

None.

StartDate

string

None.

EndDate

string

None.

EditStartDate

string

None.

EditEndDate

string

None.

CreatedOn

string

None.

Score

integer

None.

Tags

string

None.

Signatures

Collection of SignatureList

None.

Followups

Collection of FollowUpCreateUpdateModel

None.

Location

Collection of LocationList

None.

AssignmentId

integer

None.

InspectionDuration

string

None.

InitialDuration

string

None.

InspectionType

string

None.

IsDurationCalculated

boolean

None.

IsInspectionPerformedByOperator

boolean

None.

IsAcceptWithOutInspection

boolean

None.

IsMailsentRANoAction

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "InspectionTemplateId": 2,
  "AccountId": 3,
  "Title": "sample string 4",
  "Description": "sample string 5",
  "InspectorId": "sample string 6",
  "StartDate": "sample string 7",
  "EndDate": "sample string 8",
  "EditStartDate": "sample string 9",
  "EditEndDate": "sample string 10",
  "CreatedOn": "sample string 11",
  "Score": 12,
  "Tags": "sample string 13",
  "Signatures": [
    {
      "Id": 1,
      "URL": "sample string 2",
      "SnapshotDate": "2024-11-21T08:42:54.0484014+00:00"
    },
    {
      "Id": 1,
      "URL": "sample string 2",
      "SnapshotDate": "2024-11-21T08:42:54.0484014+00:00"
    }
  ],
  "Followups": [
    {
      "Id": 1,
      "AccountId": 2,
      "InspectionId": 3,
      "InspectorId": "sample string 4",
      "ResponseOptionId": 5,
      "ResponseOptionLimitId": 1,
      "ResponseOptionValue": 1.1,
      "TEGId": 6,
      "DueDate": "sample string 7",
      "EmailOverride": true,
      "Notes": [
        {
          "Id": 1,
          "Text": "sample string 2"
        },
        {
          "Id": 1,
          "Text": "sample string 2"
        }
      ],
      "Responsibles": [
        {
          "Id": 1,
          "UserId": "sample string 2",
          "DisplayName": "sample string 3"
        },
        {
          "Id": 1,
          "UserId": "sample string 2",
          "DisplayName": "sample string 3"
        }
      ],
      "InformedParties": [
        {
          "Id": 1,
          "UserId": "sample string 2",
          "DisplayName": "sample string 3"
        },
        {
          "Id": 1,
          "UserId": "sample string 2",
          "DisplayName": "sample string 3"
        }
      ],
      "MediaUrls": [
        {
          "Id": 1,
          "URL": "sample string 2",
          "StatusFlag": "sample string 3",
          "SnapshotDate": "2024-11-21T08:42:54.0640148+00:00",
          "CreatedOn": "2024-11-21T08:42:54.0640148+00:00"
        },
        {
          "Id": 1,
          "URL": "sample string 2",
          "StatusFlag": "sample string 3",
          "SnapshotDate": "2024-11-21T08:42:54.0640148+00:00",
          "CreatedOn": "2024-11-21T08:42:54.0640148+00:00"
        }
      ],
      "StatusId": 9,
      "CreatedOn": "2024-11-21T08:42:54.0640148+00:00",
      "Location": "sample string 10",
      "IsReslovedOnSpot": 11,
      "IsRepeatTeg": true,
      "ROIndexForRepeatTeg": 13
    },
    {
      "Id": 1,
      "AccountId": 2,
      "InspectionId": 3,
      "InspectorId": "sample string 4",
      "ResponseOptionId": 5,
      "ResponseOptionLimitId": 1,
      "ResponseOptionValue": 1.1,
      "TEGId": 6,
      "DueDate": "sample string 7",
      "EmailOverride": true,
      "Notes": [
        {
          "Id": 1,
          "Text": "sample string 2"
        },
        {
          "Id": 1,
          "Text": "sample string 2"
        }
      ],
      "Responsibles": [
        {
          "Id": 1,
          "UserId": "sample string 2",
          "DisplayName": "sample string 3"
        },
        {
          "Id": 1,
          "UserId": "sample string 2",
          "DisplayName": "sample string 3"
        }
      ],
      "InformedParties": [
        {
          "Id": 1,
          "UserId": "sample string 2",
          "DisplayName": "sample string 3"
        },
        {
          "Id": 1,
          "UserId": "sample string 2",
          "DisplayName": "sample string 3"
        }
      ],
      "MediaUrls": [
        {
          "Id": 1,
          "URL": "sample string 2",
          "StatusFlag": "sample string 3",
          "SnapshotDate": "2024-11-21T08:42:54.0640148+00:00",
          "CreatedOn": "2024-11-21T08:42:54.0640148+00:00"
        },
        {
          "Id": 1,
          "URL": "sample string 2",
          "StatusFlag": "sample string 3",
          "SnapshotDate": "2024-11-21T08:42:54.0640148+00:00",
          "CreatedOn": "2024-11-21T08:42:54.0640148+00:00"
        }
      ],
      "StatusId": 9,
      "CreatedOn": "2024-11-21T08:42:54.0640148+00:00",
      "Location": "sample string 10",
      "IsReslovedOnSpot": 11,
      "IsRepeatTeg": true,
      "ROIndexForRepeatTeg": 13
    }
  ],
  "Location": [
    {
      "Level": 1,
      "Id": 2
    },
    {
      "Level": 1,
      "Id": 2
    }
  ],
  "AssignmentId": 14,
  "InspectionDuration": "sample string 15",
  "InitialDuration": "sample string 16",
  "InspectionType": "sample string 17",
  "IsDurationCalculated": true,
  "IsInspectionPerformedByOperator": true,
  "IsAcceptWithOutInspection": true,
  "IsMailsentRANoAction": true
}

application/xml, text/xml

Sample:
<InspectionCreateUpdateModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Walsh.Service.Models.InspectionsTemplates">
  <AccountId>3</AccountId>
  <AssignmentId>14</AssignmentId>
  <CreatedOn>sample string 11</CreatedOn>
  <Description>sample string 5</Description>
  <EditEndDate>sample string 10</EditEndDate>
  <EditStartDate>sample string 9</EditStartDate>
  <EndDate>sample string 8</EndDate>
  <Followups xmlns:d2p1="http://schemas.datacontract.org/2004/07/Walsh.Service.Models.FollowUp">
    <d2p1:FollowUpCreateUpdateModel>
      <d2p1:AccountId>2</d2p1:AccountId>
      <d2p1:CreatedOn>2024-11-21T08:42:54.0640148+00:00</d2p1:CreatedOn>
      <d2p1:DueDate>sample string 7</d2p1:DueDate>
      <d2p1:EmailOverride>true</d2p1:EmailOverride>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:InformedParties>
        <d2p1:CCList>
          <d2p1:DisplayName>sample string 3</d2p1:DisplayName>
          <d2p1:Id>1</d2p1:Id>
          <d2p1:UserId>sample string 2</d2p1:UserId>
        </d2p1:CCList>
        <d2p1:CCList>
          <d2p1:DisplayName>sample string 3</d2p1:DisplayName>
          <d2p1:Id>1</d2p1:Id>
          <d2p1:UserId>sample string 2</d2p1:UserId>
        </d2p1:CCList>
      </d2p1:InformedParties>
      <d2p1:InspectionId>3</d2p1:InspectionId>
      <d2p1:InspectorId>sample string 4</d2p1:InspectorId>
      <d2p1:IsRepeatTeg>true</d2p1:IsRepeatTeg>
      <d2p1:IsReslovedOnSpot>11</d2p1:IsReslovedOnSpot>
      <d2p1:Location>sample string 10</d2p1:Location>
      <d2p1:MediaUrls>
        <d2p1:MediaList>
          <d2p1:CreatedOn>2024-11-21T08:42:54.0640148+00:00</d2p1:CreatedOn>
          <d2p1:Id>1</d2p1:Id>
          <d2p1:SnapshotDate xmlns:d6p1="http://schemas.datacontract.org/2004/07/System">
            <d6p1:DateTime>2024-11-21T08:42:54.0640148Z</d6p1:DateTime>
            <d6p1:OffsetMinutes>0</d6p1:OffsetMinutes>
          </d2p1:SnapshotDate>
          <d2p1:StatusFlag>sample string 3</d2p1:StatusFlag>
          <d2p1:URL>sample string 2</d2p1:URL>
        </d2p1:MediaList>
        <d2p1:MediaList>
          <d2p1:CreatedOn>2024-11-21T08:42:54.0640148+00:00</d2p1:CreatedOn>
          <d2p1:Id>1</d2p1:Id>
          <d2p1:SnapshotDate xmlns:d6p1="http://schemas.datacontract.org/2004/07/System">
            <d6p1:DateTime>2024-11-21T08:42:54.0640148Z</d6p1:DateTime>
            <d6p1:OffsetMinutes>0</d6p1:OffsetMinutes>
          </d2p1:SnapshotDate>
          <d2p1:StatusFlag>sample string 3</d2p1:StatusFlag>
          <d2p1:URL>sample string 2</d2p1:URL>
        </d2p1:MediaList>
      </d2p1:MediaUrls>
      <d2p1:Notes>
        <d2p1:NewNoteList>
          <d2p1:Id>1</d2p1:Id>
          <d2p1:Text>sample string 2</d2p1:Text>
        </d2p1:NewNoteList>
        <d2p1:NewNoteList>
          <d2p1:Id>1</d2p1:Id>
          <d2p1:Text>sample string 2</d2p1:Text>
        </d2p1:NewNoteList>
      </d2p1:Notes>
      <d2p1:ROIndexForRepeatTeg>13</d2p1:ROIndexForRepeatTeg>
      <d2p1:ResponseOptionId>5</d2p1:ResponseOptionId>
      <d2p1:ResponseOptionLimitId>1</d2p1:ResponseOptionLimitId>
      <d2p1:ResponseOptionValue>1.1</d2p1:ResponseOptionValue>
      <d2p1:Responsibles>
        <d2p1:RespList>
          <d2p1:DisplayName>sample string 3</d2p1:DisplayName>
          <d2p1:Id>1</d2p1:Id>
          <d2p1:UserId>sample string 2</d2p1:UserId>
        </d2p1:RespList>
        <d2p1:RespList>
          <d2p1:DisplayName>sample string 3</d2p1:DisplayName>
          <d2p1:Id>1</d2p1:Id>
          <d2p1:UserId>sample string 2</d2p1:UserId>
        </d2p1:RespList>
      </d2p1:Responsibles>
      <d2p1:StatusId>9</d2p1:StatusId>
      <d2p1:TEGId>6</d2p1:TEGId>
    </d2p1:FollowUpCreateUpdateModel>
    <d2p1:FollowUpCreateUpdateModel>
      <d2p1:AccountId>2</d2p1:AccountId>
      <d2p1:CreatedOn>2024-11-21T08:42:54.0640148+00:00</d2p1:CreatedOn>
      <d2p1:DueDate>sample string 7</d2p1:DueDate>
      <d2p1:EmailOverride>true</d2p1:EmailOverride>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:InformedParties>
        <d2p1:CCList>
          <d2p1:DisplayName>sample string 3</d2p1:DisplayName>
          <d2p1:Id>1</d2p1:Id>
          <d2p1:UserId>sample string 2</d2p1:UserId>
        </d2p1:CCList>
        <d2p1:CCList>
          <d2p1:DisplayName>sample string 3</d2p1:DisplayName>
          <d2p1:Id>1</d2p1:Id>
          <d2p1:UserId>sample string 2</d2p1:UserId>
        </d2p1:CCList>
      </d2p1:InformedParties>
      <d2p1:InspectionId>3</d2p1:InspectionId>
      <d2p1:InspectorId>sample string 4</d2p1:InspectorId>
      <d2p1:IsRepeatTeg>true</d2p1:IsRepeatTeg>
      <d2p1:IsReslovedOnSpot>11</d2p1:IsReslovedOnSpot>
      <d2p1:Location>sample string 10</d2p1:Location>
      <d2p1:MediaUrls>
        <d2p1:MediaList>
          <d2p1:CreatedOn>2024-11-21T08:42:54.0640148+00:00</d2p1:CreatedOn>
          <d2p1:Id>1</d2p1:Id>
          <d2p1:SnapshotDate xmlns:d6p1="http://schemas.datacontract.org/2004/07/System">
            <d6p1:DateTime>2024-11-21T08:42:54.0640148Z</d6p1:DateTime>
            <d6p1:OffsetMinutes>0</d6p1:OffsetMinutes>
          </d2p1:SnapshotDate>
          <d2p1:StatusFlag>sample string 3</d2p1:StatusFlag>
          <d2p1:URL>sample string 2</d2p1:URL>
        </d2p1:MediaList>
        <d2p1:MediaList>
          <d2p1:CreatedOn>2024-11-21T08:42:54.0640148+00:00</d2p1:CreatedOn>
          <d2p1:Id>1</d2p1:Id>
          <d2p1:SnapshotDate xmlns:d6p1="http://schemas.datacontract.org/2004/07/System">
            <d6p1:DateTime>2024-11-21T08:42:54.0640148Z</d6p1:DateTime>
            <d6p1:OffsetMinutes>0</d6p1:OffsetMinutes>
          </d2p1:SnapshotDate>
          <d2p1:StatusFlag>sample string 3</d2p1:StatusFlag>
          <d2p1:URL>sample string 2</d2p1:URL>
        </d2p1:MediaList>
      </d2p1:MediaUrls>
      <d2p1:Notes>
        <d2p1:NewNoteList>
          <d2p1:Id>1</d2p1:Id>
          <d2p1:Text>sample string 2</d2p1:Text>
        </d2p1:NewNoteList>
        <d2p1:NewNoteList>
          <d2p1:Id>1</d2p1:Id>
          <d2p1:Text>sample string 2</d2p1:Text>
        </d2p1:NewNoteList>
      </d2p1:Notes>
      <d2p1:ROIndexForRepeatTeg>13</d2p1:ROIndexForRepeatTeg>
      <d2p1:ResponseOptionId>5</d2p1:ResponseOptionId>
      <d2p1:ResponseOptionLimitId>1</d2p1:ResponseOptionLimitId>
      <d2p1:ResponseOptionValue>1.1</d2p1:ResponseOptionValue>
      <d2p1:Responsibles>
        <d2p1:RespList>
          <d2p1:DisplayName>sample string 3</d2p1:DisplayName>
          <d2p1:Id>1</d2p1:Id>
          <d2p1:UserId>sample string 2</d2p1:UserId>
        </d2p1:RespList>
        <d2p1:RespList>
          <d2p1:DisplayName>sample string 3</d2p1:DisplayName>
          <d2p1:Id>1</d2p1:Id>
          <d2p1:UserId>sample string 2</d2p1:UserId>
        </d2p1:RespList>
      </d2p1:Responsibles>
      <d2p1:StatusId>9</d2p1:StatusId>
      <d2p1:TEGId>6</d2p1:TEGId>
    </d2p1:FollowUpCreateUpdateModel>
  </Followups>
  <Id>1</Id>
  <InitialDuration>sample string 16</InitialDuration>
  <InspectionDuration>sample string 15</InspectionDuration>
  <InspectionTemplateId>2</InspectionTemplateId>
  <InspectionType>sample string 17</InspectionType>
  <InspectorId>sample string 6</InspectorId>
  <IsAcceptWithOutInspection>true</IsAcceptWithOutInspection>
  <IsDurationCalculated>true</IsDurationCalculated>
  <IsInspectionPerformedByOperator>true</IsInspectionPerformedByOperator>
  <IsMailsentRANoAction>true</IsMailsentRANoAction>
  <Location>
    <LocationList>
      <Id>2</Id>
      <Level>1</Level>
    </LocationList>
    <LocationList>
      <Id>2</Id>
      <Level>1</Level>
    </LocationList>
  </Location>
  <Score>12</Score>
  <Signatures>
    <SignatureList>
      <Id>1</Id>
      <SnapshotDate xmlns:d4p1="http://schemas.datacontract.org/2004/07/System">
        <d4p1:DateTime>2024-11-21T08:42:54.0484014Z</d4p1:DateTime>
        <d4p1:OffsetMinutes>0</d4p1:OffsetMinutes>
      </SnapshotDate>
      <URL>sample string 2</URL>
    </SignatureList>
    <SignatureList>
      <Id>1</Id>
      <SnapshotDate xmlns:d4p1="http://schemas.datacontract.org/2004/07/System">
        <d4p1:DateTime>2024-11-21T08:42:54.0484014Z</d4p1:DateTime>
        <d4p1:OffsetMinutes>0</d4p1:OffsetMinutes>
      </SnapshotDate>
      <URL>sample string 2</URL>
    </SignatureList>
  </Signatures>
  <StartDate>sample string 7</StartDate>
  <Tags>sample string 13</Tags>
  <Title>sample string 4</Title>
</InspectionCreateUpdateModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

string

Response Formats

application/json, text/json

Sample:
"sample string 1"

application/xml, text/xml

Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>