Get list of templates

Returns a list of templates along with template identifier, name, status and template items.

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

Query Parameters

statusarray[string]unique-items

Status of a template:

  • ACTIVE template is visible to drivers to inspect with,
  • INACTIVE templates are used only to display historical reports and for backward compatibility of mobile apps,
  • DRAFT is in the process of being edited by the admin and not available for inspections yet.

Allowed values:ACTIVEINACTIVEDRAFT

>= 1 items<= 3 items

Response

application/json

Ok

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

A name will identify the template.

>= 0 items<= 100 items

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

Get template by its ID

Returns an individual template along with its items.

get
https://api.us.vzconnect.com/inspections/templates/{template-id}

Path Parameters

template-idstringrequired

Unique identifier for a given resource.

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

>= 1 characters<= 120 characters

Response

application/json

Ok

Template

A name will identify the template.

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

An item can be of a valueType and is uniquely identified by the name

>= 0 items<= 200 items

* Additional properties are NOT allowed.
Show Child Parameters
itemsSelectionTypestring

Determines how inspection items will be presented to the drivers on the user interface. Specifies whether drivers need to confirm only defective items or must verify all inspection items regardless of condition before submitting the report.

Types of template:

  • SELECT_DEFECTS_ONLY Requires driver to selects only the defective inspection items from the user interface during the creation of an inspection report,
  • SELECT_ALL_ITEMS Requires driver to check and selects all inspection items from the user interface during the creation of an inspection report

Allowed values:SELECT_DEFECTS_ONLYSELECT_ALL_ITEMS

statusstring

Status of a template:

  • ACTIVE template is visible to drivers to inspect with,
  • INACTIVE templates are used only to display historical reports and for backward compatibility of mobile apps,
  • DRAFT is in the process of being edited by the admin and not available for inspections yet.

Allowed values:ACTIVEINACTIVEDRAFT

commentstring | null

Notes about the template

Match pattern:^(?!\s)(?!.*\s$)[\S\s]+(?<!\s)$

>= 0 characters<= 120 characters

linksarray[object]read-onlyunique-items

Reference to another resource

>= 0 items<= 100 items

* Additional properties are NOT allowed.
Show Child Parameters
namestringrequired

Unique name of the template.

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

>= 3 characters<= 60 characters

templateIdstringread-only

Unique identifier for a template.

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

>= 1 characters<= 120 characters

 
application/json

InspectionType

string

An inspectionType can be of an enum

Allowed values:DVIR

PrivacySubjectSearchRequest

object

The request of privacy subject search

* Additional properties are NOT allowed.
lastNamestring

The last name of the person to be searched.

Match pattern:^[^\n]+$

>= 1 characters<= 120 characters

firstNamestring

The first name of the person to be searched.

Match pattern:^[^\n]+$

>= 1 characters<= 120 characters

Example

Operator

object

Person performing an inspection

* Additional properties are NOT allowed.
operatorTypestring

Role of a person who prepared the report

Allowed values:DRIVER

operatorNamestringread-only

Name of an operator.

Match pattern:^[^\n]+$

>= 1 characters<= 120 characters

operatorIdstring

Unique identifier for a given resource.

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

>= 1 characters<= 120 characters

Example