Search for attachments based on criteria provided

Returns a list of attachments based on criteria provided.

post
https://api.us.vzconnect.com/inspections/attachments/search

Body

application/json

AttachmentSearch

Schema for searching attachments based on attachment IDs.

* Additional properties are NOT allowed.
conditionsarray[object]required

Group of conditions to filter by the resource representation.

>= 1 items<= 100 items

Show Child Parameters
fieldsarray[string]required

Field or property name to be returned in the resource representation.

Match pattern:^(attachmentId|name|attachmentType|createdAt|author|comment|links|data)$

>= 1 characters<= 120 characters>= 1 items<= 8 items

Response

application/json

Ok

* Additional properties are NOT allowed.
itemsarray[object]unique-items

Inspection attachment: photo, signature, document, comment.

name would be used as file name if enclosure is uploaded.

>= 0 items<= 100 items

* Additional properties are allowed.
Show Child Parameters
 
application/json

Get defects found in reports

Returns all the defects found in an inspection report. Related reports are excluded from response

get
https://api.us.vzconnect.com/inspections/defects

Query Parameters

inspectable_idstring

Unique ID for an inspectable, i.e. asset/vehicle (asset ID/vehicle ID).

Match pattern:^[A-Za-z0-9-]{1,120}$

>= 1 characters<= 120 characters

inspectable_typestring

Type of an inspectable asset.

  • VEHICLE when Vehicle is inspected
  • POWERED_ASSET when assets that have a power source is inspected
  • NON_POWERED_ASSET when assets that do not have a power source is inspected

Allowed values:VEHICLEPOWERED_ASSETNON_POWERED_ASSET

report_idstring

Unique identifier for a given resource.

Match pattern:^[A-Za-z0-9-]{1,120}$

>= 1 characters<= 120 characters

statusarray[string]unique-items

Type of the defect.

Allowed values:PENDINGFIXEDCERTIFIED

>= 0 items<= 10 items

severityarray[string]unique-items

Severity of the defect.

Allowed values:MINORCRITICAL

>= 0 items<= 10 items

page_tokenstring

Identifies a bookmark for the next page of results.

Match pattern:^[.+\/=A-Za-z0-9]+$

>= 1 characters<= 200 characters

Response

application/json

Ok

* Additional properties are NOT allowed.
linksarray[object]unique-items

Reference to another resource

>= 0 items<= 100 items

* Additional properties are NOT allowed.
Show Child Parameters
itemsarray[object]unique-items

Defect details of a vehicle or other asset

>= 0 items<= 100 items

* Additional properties are NOT allowed.
Show Child Parameters
 
application/json

Update defect found in reports.

Update a defect associated with reports.

Additions (tail only) are supported for /attachments

Replacements are supported for /status:

  • Only transitions PENDING ↔ FIXED is permitted
  • Attachment of type SIGNATURE must be included with each request modifying status
  • Updating a defect that has already been CERTIFIED is not permitted
  • otherwise 422 Unprocessable Content is returned.
patch
https://api.us.vzconnect.com/inspections/defects/{defect-id}

Path Parameters

defect-idstringrequired

Unique identifier for a given resource.

Match pattern:^[A-Za-z0-9-]{1,120}$

>= 1 characters<= 120 characters

Headers

Idempotency-Keystringrequired

Carries an idempotency key in order to make non-idempotent HTTP methods such as POST or PATCH fault-tolerant. Must include quotes.

Match pattern:^"[a-z0-9-]+"$

>= 1 characters<= 120 characters

If-Matchstringrequired

This header is use in combination with an “ETag” as a precondition for concurrency control.

Match pattern:^"[a-z0-9-]+"$

>= 1 characters<= 120 characters

Body

application/json

A JSON Patch document as defined by RFC 6902

Defines an individual operation within a JsonPatchDocument

>= 0 items<= 10 items

* Additional properties are NOT allowed.
opstringrequired

Indicates the operaton to be performed,as per RFC 6902

Match pattern:^(add|remove|replace|move|copy|test)$

>= 1 characters<= 120 characters

fromstring

A string containing a RFC 6901 JSON Pointer value that references the source location where the operation is applied

Match pattern:^(\/[^\n]+)*$

>= 0 characters<= 2000 characters

valueOne Of
Variant 1string

The value to be used within the operations

Match pattern:^[^\n]+$

>= 1 characters<= 2000 characters

pathstringrequired

A string containing a RFC 6901 JSON Pointer value that references the target location where the operation is performed

Match pattern:^\/[^\n]+$

>= 1 characters<= 2000 characters

Response

No content. The request was applied.

 

Get all reports

Returns all the inspection reports in an account.

It is possible to retrieve additional information by including the following values into embed query parameter:

  • attachments - to include detailed attachments linked to report
  • analyticsEvents - to access analytics events related to report
get
https://api.us.vzconnect.com/inspections/reports

Query Parameters

page_tokenstring

Identifies a bookmark for the next page of results.

Match pattern:^[.+\/=A-Za-z0-9]+$

>= 1 characters<= 200 characters

inspectable_idstring

Unique ID for an inspectable, i.e. asset/vehicle (asset ID/vehicle ID).

Match pattern:^[A-Za-z0-9-]{1,120}$

>= 1 characters<= 120 characters

inspectable_typestring

Type of an inspectable asset.

  • VEHICLE when Vehicle is inspected
  • POWERED_ASSET when assets that have a power source is inspected
  • NON_POWERED_ASSET when assets that do not have a power source is inspected

Allowed values:VEHICLEPOWERED_ASSETNON_POWERED_ASSET

related_defects_statusarray[string]unique-items

Overall status of all related CRITICAL defects. Calculated only when relatedDefects are included into the response.

  • PASSED when no CRITICAL defects were reported
  • FAILED when at least one reported CRITICAL defect is PENDING
  • RESOLVED when all CRITICAL defects are FIXED or CERTIFIED and at least one has status FIXED
  • CERTIFIED when all reported CRITICAL defects are CERTIFIED

Allowed values:PASSEDFAILEDRESOLVEDCERTIFIED

>= 1 items<= 4 items

qstring

Filter for inspection history by input text search vehicle or driver name.

Match pattern:^[ a-zA-Z0-9-]{3,255}$

>= 3 characters<= 255 characters

start_submitted_atstring(date-time)

Filter for inspection history by a date range of when the inspection was created start date.

>= 24 characters<= 24 characters

end_submitted_atstring(date-time)

Filter for inspection history by a date range of when the inspection was created end date.

>= 24 characters<= 24 characters

embedarray[string]unique-items

Field name expressions to expand or embed sub-resources within representations.

Match pattern:^(attachments|analyticsEvents)$

>= 1 characters<= 200 characters>= 0 items<= 2 items

inspectable_groupobject

Selection criteria for inspectables within a group

* Additional properties are NOT allowed.

Response

application/json

Ok

* Additional properties are NOT allowed.
linksarray[object]unique-items

Reference to another resource

>= 0 items<= 100 items

* Additional properties are NOT allowed.
Show Child Parameters
itemsarray[object]unique-items

Inspection details of a vehicle or other asset

>= 0 items<= 100 items

* Additional properties are NOT allowed.
Show Child Parameters
 
application/json

Get report

Returns an individual inspection report based on Report Id

get
https://api.us.vzconnect.com/inspections/reports/{report-id}

Path Parameters

report-idstringrequired

Unique identifier for a given resource.

Match pattern:^[A-Za-z0-9-]{1,120}$

>= 1 characters<= 120 characters

Response

application/json

Ok

Report

Inspection details of a vehicle or other asset

* Additional properties are NOT allowed.
submittedAtstring(date-time)required

Report submitted time as UTC in RFC 3339-ISO8601 internet profile

>= 24 characters<= 24 characters

templateIdstringrequired

Unique identifier for a given resource.

Match pattern:^[A-Za-z0-9-]{1,120}$

>= 1 characters<= 120 characters

inspectableobjectrequired

Asset under inspection

* Additional properties are NOT allowed.
Show Child Parameters
relatedDefectsStatusstringread-only

Overall status of all related CRITICAL defects. Calculated only when relatedDefects are included into the response.

  • PASSED when no CRITICAL defects were reported
  • FAILED when at least one reported CRITICAL defect is PENDING
  • RESOLVED when all CRITICAL defects are FIXED or CERTIFIED and at least one has status FIXED
  • CERTIFIED when all reported CRITICAL defects are CERTIFIED

Allowed values:PASSEDFAILEDRESOLVEDCERTIFIED

Match pattern:^[^\n]+$

>= 1 characters<= 120 characters

analyticsEventsarray[object]

Named occurrence at an instant in time. It provides additional specifics about the occurrence.
Examples of Events might include things like uncaught exceptions, button clicks, user logout, network connection severed, etc.

>= 0 items<= 100 items

* Additional properties are NOT allowed.
Show Child Parameters
reportTypestringrequired

Type of the inspection report.

Allowed values:PRE_TRIPPOST_TRIP

reportIdstringread-only

Unique identifier for a report.

Match pattern:^[A-Za-z0-9-]{1,120}$

>= 1 characters<= 120 characters

resultsarray[object]requiredunique-items

Template Item result within a given report.

>= 0 items<= 100 items

* Additional properties are NOT allowed.
Show Child Parameters
defectsarray[object]unique-items

Defects related to the report outside of results

>= 0 items<= 100 items

* Additional properties are NOT allowed.
Show Child Parameters
attachmentsOne Of
arrayunique-items

Attachments in the report

>= 0 items<= 100 items

Attachmentobjectread-only

Attachment related to the report

* Additional properties are allowed.
Show Child Parameters
commentstring | null

Notes about the report

Match pattern:^[^\n]*$

>= 0 characters<= 2000 characters

operatorobjectrequired

Person performing an inspection

* Additional properties are NOT allowed.
Show Child Parameters
linksarray[object]read-onlyunique-items

Reference to another resource

>= 0 items<= 100 items

* Additional properties are NOT allowed.
Show Child Parameters
inspectionTypestringrequired

An inspectionType can be of an enum

Allowed values:DVIR

 
application/json