Trendsic Platform Service

<back to all web services

InspectionDueRequest

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/inspections/due
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports CRM.AgencyPlatform.API.Internal

Namespace Global

    Namespace CRM.AgencyPlatform.API.Internal

        Public Partial Class Inspection
            Public Overridable Property InspectionID As Integer
            Public Overridable Property InspectionUID As Guid
            Public Overridable Property ProjectID As Integer
            Public Overridable Property ProjectName As String
            Public Overridable Property JobID As Integer?
            Public Overridable Property JobName As String
            Public Overridable Property InspectionNo As String
            Public Overridable Property Type As String
            Public Overridable Property Title As String
            Public Overridable Property Status As String
            Public Overridable Property TemplateUID As Guid?
            Public Overridable Property TemplateVersionNo As Integer?
            Public Overridable Property ScheduledFor As Date?
            Public Overridable Property StartedAt As Date?
            Public Overridable Property CompletedAt As Date?
            Public Overridable Property ClosedAt As Date?
            Public Overridable Property InspectorContactID As Integer?
            Public Overridable Property InspectorName As String
            Public Overridable Property AgencyName As String
            Public Overridable Property PermitNo As String
            Public Overridable Property LocationText As String
            Public Overridable Property Notes As String
            Public Overridable Property WeatherJson As String
            Public Overridable Property ItemsTotal As Integer
            Public Overridable Property ItemsPassed As Integer
            Public Overridable Property ItemsFailed As Integer
            Public Overridable Property Outcome As String
            Public Overridable Property OutcomeNotes As String
            Public Overridable Property ReinspectionOfInspectionID As Integer?
            Public Overridable Property QcHoldPointID As Integer?
            Public Overridable Property ReportAttachmentId As Guid?
            Public Overridable Property RequestCount As Integer
            Public Overridable Property SignatureCount As Integer
            Public Overridable Property CreatedBy As String
            Public Overridable Property CreatedAt As Date?
            Public Overridable Property UpdatedAt As Date?
            Public Overridable Property Items As List(Of InspectionItem) = New List(Of InspectionItem)
            Public Overridable Property Requests As List(Of InspectionRequest) = New List(Of InspectionRequest)
            Public Overridable Property Signatures As List(Of SignatureRecord) = New List(Of SignatureRecord)
            Public Overridable Property Actions As List(Of String) = New List(Of String)
        End Class

        Public Partial Class InspectionDueRequest
            Public Overridable Property ProjectID As Integer?
        End Class

        Public Partial Class InspectionItem
            Public Overridable Property InspectionItemID As Integer
            Public Overridable Property InspectionID As Integer
            Public Overridable Property Seq As Integer
            Public Overridable Property Section As String
            Public Overridable Property Prompt As String
            Public Overridable Property ResponseType As String
            Public Overridable Property IsRequired As Boolean
            Public Overridable Property Unit As String
            Public Overridable Property Guidance As String
            Public Overridable Property Result As String
            Public Overridable Property Value As String
            Public Overridable Property Notes As String
            Public Overridable Property PhotoCount As Integer
            Public Overridable Property LinkedPunchItemID As Integer?
            Public Overridable Property LinkedPunchNo As String
            Public Overridable Property LinkedPunchStatus As String
            Public Overridable Property LinkedNcrID As Integer?
            Public Overridable Property LinkedNcrNo As String
            Public Overridable Property LinkedActionID As Integer?
            Public Overridable Property AnsweredBy As String
            Public Overridable Property AnsweredAt As Date?
            Public Overridable Property Photos As List(Of InspectionPhoto) = New List(Of InspectionPhoto)
        End Class

        Public Partial Class InspectionListResponse
            Public Overridable Property ResponseStatus As ResponseStatus
            Public Overridable Property Inspections As List(Of Inspection) = New List(Of Inspection)
            Public Overridable Property Summary As InspectionSummary
        End Class

        Public Partial Class InspectionPhoto
            Public Overridable Property AttachmentId As Guid
            Public Overridable Property FileName As String
            Public Overridable Property Url As String
            Public Overridable Property CreatedBy As String
            Public Overridable Property CreatedDate As Date?
            Public Overridable Property HasAnnotation As Boolean
            Public Overridable Property AnnotatedAttachmentId As Guid?
            Public Overridable Property AnnotatedUrl As String
        End Class

        Public Partial Class InspectionRequest
            Public Overridable Property InspectionRequestID As Integer
            Public Overridable Property InspectionID As Integer
            Public Overridable Property Agency As String
            Public Overridable Property ContactName As String
            Public Overridable Property ContactPhone As String
            Public Overridable Property PermitNo As String
            Public Overridable Property RequestedDate As Date?
            Public Overridable Property RequestedWindow As String
            Public Overridable Property Status As String
            Public Overridable Property ConfirmationNo As String
            Public Overridable Property Outcome As String
            Public Overridable Property CreatedBy As String
            Public Overridable Property CreatedAt As Date?
            Public Overridable Property UpdatedAt As Date?
        End Class

        Public Partial Class InspectionSummary
            Public Overridable Property Total As Integer
            Public Overridable Property DueToday As Integer
            Public Overridable Property Overdue As Integer
            Public Overridable Property InProgress As Integer
            Public Overridable Property Failed As Integer
            Public Overridable Property Conditional As Integer
            Public Overridable Property PassedOpen As Integer
            Public Overridable Property Closed As Integer
            Public Overridable Property Completed30d As Integer
            Public Overridable Property Passed30d As Integer
            Public Overridable Property Headline As String
        End Class

        Public Partial Class SignatureRecord
            Public Overridable Property SignatureRecordID As Integer
            Public Overridable Property EntityType As String
            Public Overridable Property EntityID As Integer
            Public Overridable Property Role As String
            Public Overridable Property SignerName As String
            Public Overridable Property SignerContactID As Integer?
            Public Overridable Property SignerUserId As String
            Public Overridable Property Method As String
            Public Overridable Property ImageAttachmentId As Guid?
            Public Overridable Property ImageUrl As String
            Public Overridable Property ImageHash As String
            Public Overridable Property DocumentHash As String
            Public Overridable Property ConsentText As String
            Public Overridable Property IpAddress As String
            Public Overridable Property UserAgent As String
            Public Overridable Property SignedAt As Date?
        End Class
    End Namespace
End Namespace

VB.NET InspectionDueRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /v1/inspections/due HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"Inspections":[{"InspectionID":0,"InspectionUID":"00000000000000000000000000000000","ProjectID":0,"ProjectName":"String","JobID":0,"JobName":"String","InspectionNo":"String","Type":"String","Title":"String","Status":"String","TemplateUID":"00000000000000000000000000000000","TemplateVersionNo":0,"ScheduledFor":"0001-01-01T00:00:00.0000000","StartedAt":"0001-01-01T00:00:00.0000000","CompletedAt":"0001-01-01T00:00:00.0000000","ClosedAt":"0001-01-01T00:00:00.0000000","InspectorContactID":0,"InspectorName":"String","AgencyName":"String","PermitNo":"String","LocationText":"String","Notes":"String","WeatherJson":"String","ItemsTotal":0,"ItemsPassed":0,"ItemsFailed":0,"Outcome":"String","OutcomeNotes":"String","ReinspectionOfInspectionID":0,"QcHoldPointID":0,"ReportAttachmentId":"00000000000000000000000000000000","RequestCount":0,"SignatureCount":0,"CreatedBy":"String","CreatedAt":"0001-01-01T00:00:00.0000000","UpdatedAt":"0001-01-01T00:00:00.0000000","Items":[{"InspectionItemID":0,"InspectionID":0,"Seq":0,"Section":"String","Prompt":"String","ResponseType":"String","IsRequired":false,"Unit":"String","Guidance":"String","Result":"String","Value":"String","Notes":"String","PhotoCount":0,"LinkedPunchItemID":0,"LinkedPunchNo":"String","LinkedPunchStatus":"String","LinkedNcrID":0,"LinkedNcrNo":"String","LinkedActionID":0,"AnsweredBy":"String","AnsweredAt":"0001-01-01T00:00:00.0000000","Photos":[{"AttachmentId":"00000000000000000000000000000000","FileName":"String","Url":"String","CreatedBy":"String","CreatedDate":"0001-01-01T00:00:00.0000000","HasAnnotation":false,"AnnotatedAttachmentId":"00000000000000000000000000000000","AnnotatedUrl":"String"}]}],"Requests":[{"InspectionRequestID":0,"InspectionID":0,"Agency":"String","ContactName":"String","ContactPhone":"String","PermitNo":"String","RequestedDate":"0001-01-01T00:00:00.0000000","RequestedWindow":"String","Status":"String","ConfirmationNo":"String","Outcome":"String","CreatedBy":"String","CreatedAt":"0001-01-01T00:00:00.0000000","UpdatedAt":"0001-01-01T00:00:00.0000000"}],"Signatures":[{"SignatureRecordID":0,"EntityType":"String","EntityID":0,"Role":"String","SignerName":"String","SignerContactID":0,"SignerUserId":"String","Method":"String","ImageAttachmentId":"00000000000000000000000000000000","ImageUrl":"String","ImageHash":"String","DocumentHash":"String","ConsentText":"String","IpAddress":"String","UserAgent":"String","SignedAt":"0001-01-01T00:00:00.0000000"}],"Actions":["String"]}],"Summary":{"Total":0,"DueToday":0,"Overdue":0,"InProgress":0,"Failed":0,"Conditional":0,"PassedOpen":0,"Closed":0,"Completed30d":0,"Passed30d":0,"Headline":"String"}}