A JSON Patch document as defined by RFC 6902
arrayRepresents a list of operations to apply to a resource for partial updates
>= 0 items<= 10 items
Indicates the operaton to be performed,as per RFC 6902
Match pattern:^(add|remove|replace|move|copy|test)$
>= 1 characters<= 120 characters
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
One OfThe value to be used within the operations
Match pattern:^[^\n]+$
>= 1 characters<= 2000 characters
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
Attachment
objectInspection attachment: photo, signature, document, comment.
name would be used as file name if enclosure is uploaded.
Various media for an attachment
>= 0 items<= 100 items
Show Child Parameters
Name of an attachment.
Match pattern:^[^\n]+$
>= 1 characters<= 120 characters
Attachment details
Match pattern:^[^\n]*$
>= 0 characters<= 2000 characters
Related media, typically photo or document, potentially large and thus requiring separate upload facility
Show Child Parameters
Unique identifier of an attachment.
Match pattern:^[A-Za-z0-9-]{1,120}$
>= 1 characters<= 120 characters
Person that created an attachment
Show Child Parameters
Type of attachment, example Signature, Comment, Photo
Allowed values:SIGNATURECOMMENTPHOTO
Reference to another resource
>= 0 items<= 100 items
Show Child Parameters
OperatorType
stringRole of a person who prepared the report
Allowed values:DRIVER
Defect Search Response
objectDefect details of a vehicle or other asset
Type of the defect.
Allowed values:PENDINGFIXEDCERTIFIED
Severity of the defect.
Allowed values:MINORCRITICAL
Unique identifier of a defect.
Match pattern:^[A-Za-z0-9-]{1,120}$
>= 1 characters<= 120 characters
Template
objectA name will identify the template.
An item can be of a valueType and is uniquely identified by the name
>= 0 items<= 200 items
Show Child Parameters
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_ONLYRequires driver to selects only the defective inspection items from the user interface during the creation of an inspection report,SELECT_ALL_ITEMSRequires 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
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
Notes about the template
Match pattern:^(?!\s)(?!.*\s$)[\S\s]+(?<!\s)$
>= 0 characters<= 120 characters
Reference to another resource
>= 0 items<= 100 items
Show Child Parameters
Unique name of the template.
Match pattern:^\S[^\n]+\S$
>= 3 characters<= 60 characters
Unique identifier for a template.
Match pattern:^[A-Za-z0-9-]{1,120}$
>= 1 characters<= 120 characters