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.
Path Parameters
Unique identifier for a given resource.
Match pattern:^[A-Za-z0-9-]{1,120}$
>= 1 characters<= 120 characters
Headers
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
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
Body
A JSON Patch document as defined by RFC 6902
Defines an individual operation within a JsonPatchDocument
>= 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
Response
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
Query Parameters
Identifies a bookmark for the next page of results.
Match pattern:^[.+\/=A-Za-z0-9]+$
>= 1 characters<= 200 characters
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
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
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
Filter for inspection history by input text search vehicle or driver name.
Match pattern:^[ a-zA-Z0-9-]{3,255}$
>= 3 characters<= 255 characters
Filter for inspection history by a date range of when the inspection was created start date.
>= 24 characters<= 24 characters
Filter for inspection history by a date range of when the inspection was created end date.
>= 24 characters<= 24 characters
Field name expressions to expand or embed sub-resources within representations.
Match pattern:^(attachments|analyticsEvents)$
>= 1 characters<= 200 characters>= 0 items<= 2 items
Selection criteria for inspectables within a group
Response
application/json
Response
Ok
Reference to another resource
>= 0 items<= 100 items
Show Child Parameters
Inspection details of a vehicle or other asset
>= 0 items<= 100 items
Show Child Parameters
Get report
Returns an individual inspection report based on Report Id
Path Parameters
Unique identifier for a given resource.
Match pattern:^[A-Za-z0-9-]{1,120}$
>= 1 characters<= 120 characters
Response
application/json
Response
Ok
Report
Inspection details of a vehicle or other asset
Report submitted time as UTC in RFC 3339-ISO8601 internet profile
>= 24 characters<= 24 characters
Unique identifier for a given resource.
Match pattern:^[A-Za-z0-9-]{1,120}$
>= 1 characters<= 120 characters
Asset under inspection
Show Child Parameters
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
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
Show Child Parameters
Type of the inspection report.
Allowed values:PRE_TRIPPOST_TRIP
Unique identifier for a report.
Match pattern:^[A-Za-z0-9-]{1,120}$
>= 1 characters<= 120 characters
Template Item result within a given report.
>= 0 items<= 100 items
Show Child Parameters
Defects related to the report outside of results
>= 0 items<= 100 items
Show Child Parameters
One OfAttachments in the report
>= 0 items<= 100 items
Attachment related to the report
Show Child Parameters
Notes about the report
Match pattern:^[^\n]*$
>= 0 characters<= 2000 characters
Person performing an inspection
Show Child Parameters
Reference to another resource
>= 0 items<= 100 items
Show Child Parameters
An inspectionType can be of an enum
Allowed values:DVIR
Get list of templates
Returns a list of templates along with template identifier, name, status and template items.
Query Parameters
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
Response
Ok
A name will identify the template.
>= 0 items<= 100 items
Show Child Parameters
Get template by its ID
Returns an individual template along with its items.
Path Parameters
Unique identifier for a given resource.
Match pattern:^[A-Za-z0-9-]{1,120}$
>= 1 characters<= 120 characters
Response
application/json
Response
Ok
Template
A 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