List Submitted Inspection Forms
Returns a list of Submitted Inspection Forms belonging to your account.
Submitting inspection forms through the API is not currently supported.
- 200
- 401
- 500
OK
Response Headers
X-PaginationLimit string
The per page limit. Currently set to 100 but subject to change at any time.
X-Pagination-Current-Page string
The current page. Defaults to 1.
X-Pagination-Total-Pages string
The total number of pages in the result set. Use this along with Pagination-Current-Page to determine if there are any remaining pages/records to be retrieved.
X-Pagination-Total-Count string
The total number of records in the result set (across all pages).
- application/json
- Schema
- Example (from schema)
Schema
array
- id integer
Possible values:
>= 1
- started_at date
The date and time at which this Inspection Form was started.
- submitted_at date
The date and time at which this Inspection Form was submitted.
- date string
The date on which this Inspection Form was submitted, formatted as "Mon DD, YYYY"
- failed_items integer
The number of failed items on this Inspection Form.
- vehicle_id integer
Possible values:
>= 1
- starting_latitude float
The latitude at which this Inspection Form was started.
- starting_longitude float
The longitude at which this Inspection Form was started.
- submitted_latitude float
The latitude at which this Inspection Form was submitted.
- submitted_longitude float
The longitude at which this Inspection Form was submitted.
- duration string
The duration of time in words (eg; 15 minutes, about 1 hour) between when this Inspection Form was started and when it was submitted.
inspection_form object
id integerPossible values:
>= 1
title stringThe title of the Inspection Form.
description stringThe description of the Inspection Form.
- contact_id NullableId
Possible values:
>= 1
- user string
The full name of the User that submitted this Inspection Form.
submitted_inspection_items object[]
result object
label stringThe label that indicates the result of the Inspection Item.
id integerPossible values:
>= 1
comments_count integerThe number of
Comments
related to this Inspection Item.images_count integerThe number of Images related to this Inspection Item.
submitted_inspection_form_id integerPossible values:
>= 1
latitude floatThe latitude at which this Inspection Item was submitted.
longitude floatThe longitude at which this Inspection Item was submitted.
inspection_item object
label stringThe label or name of the Inspection Item.
type stringPossible values: [
InspectionDateItem
,InspectionDatetimeItem
,InspectionDropdownItem
,InspectionFreeTextItem
,InspectionMeterEntryItem
,InspectionNumericItem
,InspectionPassFailItem
,InspectionPhotoItem
,InspectionSectionItem
,InspectionSignatureItem
,InspectionSingleCheckboxItem
]The type or category of the Inspection Item.
fail_label stringThe label for a "Fail" result.
pass_label stringThe label for a "Pass" result.
dropdown_options object[]
An array of options for an
InspectionDropdownItem
.label stringThe label or name of the Inspection Item.
position integerThe position or order of the Inspection Item within the form.
fail_if_chosen booleanIndicates whether the inspection should fail if this item is chosen.
comments object[]
A list of the comments made on this record.
id integerPossible values:
>= 1
created_at date-timeThe date and time at which this record was created.
updated_at date-timeThe date and time at which this record was most recently updated.
commentable_type CommentableTypePossible values: [
Contact
,FleetcorCard
,FuelEntry
,InventoryJournalEntry
,Issue
,Part
,PurchaseOrder
,ServiceEntry
,ServiceReminder
,SubmittedInspectionItem
,Vehicle
,VehicleAssignment
,Vendor
,WexCard
,WorkOrder
]The type of record that the Comment will be left on. Must be associated with a matching
commentable_id
.commentable_id integerPossible values:
>= 1
user_id integerPossible values:
>= 1
title string deprecatedThe title of the Comment.
comment stringThe content of the Comment message body.
user_full_name stringThe full name of the
User
who created the Comment.user_image_url stringThe image url for the
User
who created the Comment.rich_content objecthtml_content stringThe comment message body rendered as HTML.
with_mentions booleanIndicates if the message body contains @mentions.
- comments_count integer
The number of comments made on this record.
images object[]
A list of the images attached to this record.
id integerPossible values:
>= 1
created_at date-timeThe date and time at which this record was created.
updated_at date-timeThe date and time at which this record was most recently updated.
imageable_id integerPossible values:
>= 1
imageable_type ImageableTypePossible values: [
ExpenseEntry
,WorkOrder
,Equipment
,IssueResolution
,ServiceEntry
,Vendor
,ServiceProgram
,Issue
,Contact
,Part
,Vehicle
,FuelEntry
,SubmittedInspectionItem
]file_name stringThe name of the image file.
file_mime_type Image MIME TypePossible values: [
image/jpeg
,image/gif
,image/jif
,image/jfif
,image/jfi
,image/tiff
,image/png
,image/gif
,image/jpg
,image/jpe
,image/pdf
,image/webp
,image/tif
,image/psd
,image/raw
,image/arw
,image/cr2
,image/nrw
,image/k25
,image/bmp
,image/dip
,image/ai
,image/eps
,image/heif
,image/heic
,image/ind
,image/indd
,image/indt
,image/jp2
,image/j2k
,image/jpf
,image/jpx
,image/jpm
,image/mj2
,image/x-png
]file_size numberThe size of the image file in bytes.
file_url stringThe URL to access the image file.
full_url stringThe full URL to access the image file, including any necessary authentication or parameters.
- images_count integer
The number of images attached to this record.
[
{
"id": 0,
"started_at": "2023-03-14",
"submitted_at": "2023-03-14",
"date": "string",
"failed_items": 0,
"vehicle_id": 0,
"starting_latitude": 0,
"starting_longitude": 0,
"submitted_latitude": 0,
"submitted_longitude": 0,
"duration": "string",
"inspection_form": {
"id": 0,
"title": "string",
"description": "string"
},
"contact_id": 0,
"user": "string",
"submitted_inspection_items": [
{
"result": {
"label": "string"
},
"id": 0,
"comments_count": 0,
"images_count": 0,
"submitted_inspection_form_id": 0,
"latitude": 0,
"longitude": 0,
"inspection_item": {
"label": "string",
"type": "InspectionDateItem",
"fail_label": "string",
"pass_label": "string",
"dropdown_options": [
{
"label": "string",
"position": 0,
"fail_if_chosen": true
}
]
}
}
],
"comments": [
{
"id": 0,
"created_at": "2023-03-14T13:46:27-06:00",
"updated_at": "2023-03-14T13:46:27-06:00",
"commentable_type": "Contact",
"commentable_id": 0,
"user_id": 0,
"comment": "string",
"user_full_name": "string",
"user_image_url": "string",
"rich_content": {},
"html_content": "string",
"with_mentions": true
}
],
"comments_count": 0,
"images": [
{
"id": 0,
"created_at": "2023-03-14T13:46:27-06:00",
"updated_at": "2023-03-14T13:46:27-06:00",
"imageable_id": 0,
"imageable_type": "ExpenseEntry",
"file_name": "string",
"file_mime_type": "image/jpeg",
"file_size": 0,
"file_url": "string",
"full_url": "string"
}
],
"images_count": 0
}
]
Request could not be authenticated
- application/json
- Schema
- Example (from schema)
Schema
- status integer
Possible values:
>= 400
and<= 599
- title string
A short, human-readable summary of the problem type. It SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization.
- detail string
A human-readable explanation specific to this occurrence of the problem.
- instance string
A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.
{
"status": 0,
"title": "string",
"detail": "string",
"instance": "string"
}
Something unexpected happened
- application/json
- Schema
- Example (from schema)
Schema
- status integer
Possible values:
>= 400
and<= 599
- title string
A short, human-readable summary of the problem type. It SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization.
- detail string
A human-readable explanation specific to this occurrence of the problem.
- instance string
A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.
{
"status": 0,
"title": "string",
"detail": "string",
"instance": "string"
}