Template

object

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

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

Example

TemplateStatus

string

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

DefectSeverity

string

Severity of the defect.

Allowed values:MINORCRITICAL

TemplateItemValueType

string

Defines the type of data element within a template

Allowed values:CHECKMETERTEXTLOCATIONPHOTO

InspectionStatus

string

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