---
title: "Template Item"
url: "https://developers.vzconnect.com/apis/fleet-inspections-api/versions/e4689b0c-c26d-40d6-b023-5303083c4a3f/schemas/TemplateItem"
---

> Full API specification: https://developers.vzconnect.com/apis/fleet-inspections-api/versions/e4689b0c-c26d-40d6-b023-5303083c4a3f.md

# Template Item

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

## OpenAPI definition

```yaml
openapi: 3.0.0
info:
  title: Fleet Inspections API
  version: "1.0"
servers:
  - url: https://api.us.vzconnect.com
components:
  schemas:
    TemplateItemValueType:
      type: string
      description: Defines the type of data element within a template
      enum:
        - CHECK
        - METER
        - TEXT
        - LOCATION
        - PHOTO
    TemplateItem:
      title: Template Item
      required:
        - name
        - valueType
      type: object
      properties:
        templateItemId:
          maxLength: 120
          minLength: 1
          pattern: ^[A-Za-z0-9-]{1,120}$
          type: string
          description: Unique identifier for a template item.
          readOnly: true
        valueType:
          $ref: "#/components/schemas/TemplateItemValueType"
        name:
          maxLength: 120
          minLength: 3
          pattern: ^\S[^\n]+\S$
          type: string
          description: Unique name of the template item.
        comment:
          maxLength: 2000
          minLength: 0
          pattern: ^(?!\s)(?!.*\s$)[\S\s]+(?<!\s)$
          type: string
          description: Additional information on the item
          nullable: true
        requireValue:
          type: boolean
          description: Marks template item as mandatory to fill in on every report based
            on the template
        tags:
          maxItems: 1
          minItems: 0
          uniqueItems: true
          type: array
          description: Labels and attributes of an item. If it is present, then the tag
            text is rendered as a group title for items in Reveal UI.
          items:
            maxLength: 80
            minLength: 1
            pattern: ^\S[^\n]*\S$
            type: string
            description: Individual label or attribute of an item
            readOnly: true
      additionalProperties: false
      description: An item can be of a valueType and is uniquely identified by the name
```
