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

OpenAPI specification document.

```json
{"openapi":"3.0.0","info":{"title":"Fleet Inspections API","description":"The Fleet Inspection REST Service is included within the REVEAL API suite. Integrated customers and partners can leverage this API to retrieve inspection templates, inspection reports and defects found in a report. They can also resolve defects found in a report within a REVEAL account to synchronize records between REVEAL and any Third-party maintenance software.\n\nThis API will use the following unique identifier(s): Template Id, Report Id, Defect Id. Standard REST verbs are applied: GET, POST, PATCH.","version":"1.0","x-vzc-portal":{"category":"Compliance & Safety","summary":"Retrieve vehicle and asset inspection templates, reports, defects, and attachments from Reveal.","business":{"description":"enables organizations to retrieve vehicle and asset inspection templates, reports, defects, and attachments from Reveal. The API allows maintenance teams to update defect statuses and upload new attachments to synchronize findings directly with third-party software.","purpose":"The Fleet Inspections API helps your organization manage inspection information in Reveal and connect it with business systems, such as third-party maintenance software.\n\nBy keeping inspection records synchronized, it supports consistent oversight of vehicle and asset condition and helps maintenance teams respond to issues found during inspections.\n\nYou can retrieve inspection templates, reports, defects, and related attachments.\n\nTemplates can include checks, meter readings, text, locations, and photos.\n\nReports can include inspection details, the operator or driver, the inspected vehicle or asset, comments, results, defects, attachments, and related analytics events when requested.\n\nYou can also update defects found in inspection reports to help keep their status current, and create new attachments for reports or inspection items.\n\nThis supports maintenance workflows that need to review findings, document additional information, and resolve defects in a connected system."},"use-cases":[{"title":"Template & Report Retrieval","description":"Access up-to-date inspection templates and completed driver inspection reports to support fleet-wide maintenance and operational workflows."},{"title":"Defect & Evidence Audit","description":"Review identified defects, historical severity logs, comments, meter readings, and supporting photo attachments in detail."},{"title":"Cross-Platform Synchronization","description":"Synchronize inspection findings and supporting documentation automatically between Reveal and third-party maintenance software (CMMS/EAM)."},{"title":"Defect Lifecycle & Work Order Management","description":"Programmatically update defect statuses (e.g., open, in repair, resolved) and upload new repair attachments to trigger automated maintenance work orders."}],"icon-svg-base64":"PHN2ZyB4bWxuc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AwMCIgZmlsbC1vcGFjaXR5PSIwLjM5NiIvPg0KPHBhdGggZD0iTTYxIDY0aDF2MWgtMXoiIGZpbGw9IiMwMDAwMDAiIGZpbGwtb3BhY2l0eT0iMC45MDIiLz4NCjxwYXRoIGQ9Ik01OCA2NWgxdjFoLTF6IiBmaWxsPSIjMDAwMDAwIiBmaWxsLW9wYWNpdHk9IjAuNDI0Ii8+DQo8cGF0aCBkPSJNNTkgNjVoMXYxaC0xeiIgZmlsbD0iIzAwMDAwMCIgZmlsbC1vcGFjaXR5PSIwLjE0NSIvPg0KPHBhdGggZD0iTTYwIDY1aDF2MWgtMXoiIGZpbGw9IiMwMDAwMDAiIGZpbGwtb3BhY2l0eT0iMC44OSIvPg0KPHBhdGggZD0iTTU5IDY2aDF2MWgtMXoiIGZpbGw9IiMwMDAwMDAiIGZpbGwtb3BhY2l0eT0iMC45MjkiLz4NCjxwYXRoIGQ9Ik03MyA2N2gxdjFoLTF6IiBmaWxsPSIjMDAwMDAwIiBmaWxsLW9wYWNpdHk9IjAuMzE0Ii8+DQo8cGF0aCBkPSJNNzEgNzBoMXYxaC0xeiIgZmlsbD0iIzAwMDAwMCIgZmlsbC1vcGFjaXR5PSIwLjIzOSIvPg0KPHBhdGggZD0iTTQ1IDcxaDF2MWgtMXoiIGZpbGw9IiMwMDAwMDAiIGZpbGwtb3BhY2l0eT0iMC40NzUiLz4NCjxwYXRoIGQ9Ik02NyA3M2gxdjFoLTF6IiBmaWxsPSIjMDAwMDAwIiBmaWxsLW9wYWNpdHk9IjAuMzE4Ii8+DQo8L3N2Zz4NCg=="}},"x-kong-plugin-pre-function":{"enabled":true,"config":{"access":["local uri = kong.request.get_path()\nlocal new_uri = uri:gsub('^/inspections', '/v1/inspections')\nkong.service.request.set_path(new_uri)","local CLAIM = \"reveal_account_id\"\nlocal SEP   = \"_\"\nngx.req.clear_header(\"apikey\")\nlocal auth = kong.request.get_header(\"authorization\")\nif not auth then return end\nlocal app_id = auth:match(\"[Aa]tmosphere_app_id%s*=%s*([^,%s]+)\")\nif not app_id then return end\napp_id = app_id:match('^\"(.*)\"$') or app_id:match(\"^'(.*)'$\") or app_id\nlocal token = auth:match(\"[Bb]earer%s+([^%s,]+)\")\nlocal payload = token and token:match(\"^[^.]+%.([^.]+)%.\")\nif not payload then return end\npayload = payload:gsub(\"-\", \"+\"):gsub(\"_\", \"/\")\npayload = payload .. string.rep(\"=\", (4 - #payload % 4) % 4)\nlocal json = ngx.decode_base64(payload)\nif not json then return end\nlocal account_id = json:match('\"' .. CLAIM .. '\"%s*:%s*\"?([^\",}%s]+)')\nif not account_id then return end\nngx.req.set_header(\"apikey\", app_id .. SEP .. account_id)"]}},"paths":{"/inspections/attachments":{"get":{"tags":["Fleet Inspections API"],"summary":"Get attachments","description":"Returns a list of attachments","operationId":"attachments-get","parameters":[{"name":"report_id","in":"query","description":"Retrieve only attachments which are linked to the report or its items","required":false,"schema":{"maxLength":120,"minLength":1,"pattern":"^[A-Za-z0-9-]{1,120}$","type":"string","description":"Attachments related to a given report.","default":"non-existing-id-for-no-results"}}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"maxItems":100,"minItems":0,"uniqueItems":true,"type":"array","description":"Get Attachments","items":{"$ref":"#/components/schemas/Attachment"}}},"additionalProperties":false},"examples":{"Nothing found":{"value":{"items":[]}},"Signature":{"value":{"items":[{"data":[{"length":132597,"method":"GET","rel":"enclosure","href":"https://vzc.local/FhrEcm9CeZKR4kJj"}],"name":"Signing report","links":[{"method":"GET","rel":"self","href":"/attachments/HARX6VX8frm2Zmbx"}],"author":{"name":"John Doe","authorId":"DtfckZgFzLwGaU93","authorType":"OPERATOR"},"attachmentType":"SIGNATURE","attachmentId":"HARX6VX8frm2Zmbx"},{"data":[{"rel":"enclosure","href":"https://vzc.local/5drhSHbcyEMDBDRG","method":"GET","length":954354,"tags":["original"]},{"rel":"enclosure","href":"https://vzc.local/Kg2YtnLsdH8RmESJ","method":"GET","length":87432,"tags":["thumbnail328"]},{"rel":"enclosure","href":"https://vzc.local/X251yHs16ZbpyeS2","method":"GET","length":48945,"tags":["thumbnail280"]}],"name":"Signing report","comment":"Tail Light Fixed","attachmentId":"g2vKeFH41eFjJgsC","author":{"name":"Ashley King","authorId":"GdUjjWFYbeLnC4YL","authorType":"COMPLIANCE_MANAGER"},"attachmentType":"SIGNATURE","links":[{"method":"GET","rel":"self","href":"/attachments/g2vKeFH41eFjJgsC"}]}]}}}}}},"400":{"$ref":"#/components/responses/BadRequest","description":"Bad request. The request is not valid."},"401":{"$ref":"#/components/responses/Unauthorized","description":"Unauthorized. The authorization token is missing or not valid."},"403":{"$ref":"#/components/responses/Forbidden","description":"Forbidden. The caller is not allowed to access this resource."},"404":{"$ref":"#/components/responses/NotFound","description":"Not found."},"429":{"$ref":"#/components/responses/TooManyRequests","description":"Too many requests. The rate limit has been exceeded."},"default":{"$ref":"#/components/responses/InternalServerError","description":"An unexpected error occurred."}},"deprecated":false,"x-kong-route-defaults":{"strip_path":false,"paths":["~/inspections/attachments/?$"]}},"post":{"tags":["Fleet Inspections API"],"summary":"Creates a new attachment","description":"Creates a new attachment of allowed types.\n\nField *authorType* is provided by client and designates a role of author created an attachment.\n\n*authorId* and *authorName* are taken from profile of an authenticated user at the moment when attachment is created.\n\nWhen uploading an enclosure, the following headers should match POSTed data:\n  - Content-Disposition: attachment: filename=\"__attachment.name__\"\n  - Content-Type: __attachment.enclosure.contentType__\n  - Content-Length: __attachment.enclosure.contentLength__\n  - otherwise 403 Forbidden is returned.","operationId":"attachments-post","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Attachment"},"examples":{"Create a photo":{"value":{"author":{"authorType":"OPERATOR"},"name":"IMG_0096.JPG","enclosure":{"contentLength":954354,"contentType":"image/jpeg"},"attachmentType":"PHOTO"}},"Create a signature":{"value":{"author":{"authorType":"OPERATOR"},"name":"Signing report","attachmentType":"SIGNATURE"}},"Create a comment":{"value":{"comment":"Right side of the cabin is dirty, half of the door is covered in mud","attachmentType":"COMMENT","author":{"authorType":"OPERATOR"}}}}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Attachment"},"examples":{"Created signature":{"value":{"data":[{"method":"PUT","rel":"enclosure","href":"https://vzc.local/1uE2bfkwFgE5NHE7"}],"name":"Signing report","links":[{"method":"GET","rel":"self","href":"/attachments/yZkx8m1h1V5KAFNH"}],"author":{"name":"John Doe","authorId":"ke4Hdc5ua8dJYSLA","authorType":"OPERATOR"},"attachmentType":"SIGNATURE","attachmentId":"yZkx8m1h1V5KAFNH"}},"Created comment":{"value":{"comment":"Right side of the cabin is dirty, half of the door is covered in mud","attachmentId":"htFdu2NWBFahb6Vb","author":{"name":"John Doe","authorId":"6DfLaFAeEJ4cKd5u","authorType":"OPERATOR"},"attachmentType":"COMMENT","links":[{"method":"GET","rel":"self","href":"/attachments/htFdu2NWBFahb6Vb"}]}},"Created photo":{"value":{"data":[{"length":954354,"method":"PUT","rel":"enclosure","href":"https://vzc.local/1uE2bfkwFgE5NHE7"}],"name":"IMG_0096.JPG","links":[{"method":"GET","rel":"self","href":"/attachments/yZkx8m1h1V5KAFNH"}],"author":{"name":"John Doe","authorId":"ke4Hdc5ua8dJYSLA","authorType":"OPERATOR"},"attachmentType":"PHOTO","attachmentId":"yZkx8m1h1V5KAFNH"}}}}}},"400":{"$ref":"#/components/responses/BadRequest","description":"Bad request. The request is not valid."},"401":{"$ref":"#/components/responses/Unauthorized","description":"Unauthorized. The authorization token is missing or not valid."},"403":{"$ref":"#/components/responses/Forbidden","description":"Forbidden. The caller is not allowed to access this resource."},"415":{"$ref":"#/components/responses/UnsupportedMediaType","description":"Unsupported media type. The content type of the request is not supported."},"429":{"$ref":"#/components/responses/TooManyRequests","description":"Too many requests. The rate limit has been exceeded."},"default":{"$ref":"#/components/responses/InternalServerError","description":"An unexpected error occurred."}},"deprecated":false,"x-kong-route-defaults":{"strip_path":false,"paths":["~/inspections/attachments/?$"]}}},"/inspections/attachments/search":{"post":{"tags":["Fleet Inspections API"],"summary":"Search for attachments based on criteria provided","description":"Returns a list of attachments based on criteria provided.","operationId":"attachments-search","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttachmentSearch"},"examples":{"Search by attachment IDs":{"value":{"conditions":[{"operator":"IN","field":"attachmentId","values":["XJY7KZ9LmNp4QW8R","YTR9KZ8LmNp5QW9S"]}],"fields":["attachmentId","name","attachmentType","author"]}}}}}},"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"maxItems":100,"minItems":0,"uniqueItems":true,"type":"array","description":"A list of attachments matching the criteria provided.","items":{"$ref":"#/components/schemas/Attachment"}}},"additionalProperties":false},"examples":{"Found attachments":{"value":{"items":[{"data":[{"rel":"enclosure","href":"https://vzc.local/5drhSHbcyEMDBDRG","method":"GET","length":954354,"tags":["original"]},{"rel":"enclosure","href":"https://vzc.local/Kg2YtnLsdH8RmESJ","method":"GET","length":87432,"tags":["thumbnail328"]},{"rel":"enclosure","href":"https://vzc.local/X251yHs16ZbpyeS2","method":"GET","length":48945,"tags":["thumbnail280"]}],"name":"Signing report","links":[{"method":"GET","rel":"self","href":"/attachments/XJY7KZ9LmNp4QW8R"}],"author":{"name":"John Doe","authorId":"DtfckZgFzLwGaU93","authorType":"OPERATOR"},"attachmentType":"PHOTO","attachmentId":"XJY7KZ9LmNp4QW8R"},{"data":[{"rel":"enclosure","href":"https://vzc.local/5drhSHbcyEMDBDRG","method":"GET","length":954354,"tags":["original"]},{"rel":"enclosure","href":"https://vzc.local/Kg2YtnLsdH8RmESJ","method":"GET","length":87432,"tags":["thumbnail328"]},{"rel":"enclosure","href":"https://vzc.local/X251yHs16ZbpyeS2","method":"GET","length":48945,"tags":["thumbnail280"]}],"name":"Signing report","links":[{"method":"GET","rel":"self","href":"/attachments/YTR9KZ8LmNp5QW9S"}],"author":{"name":"John Doe","authorId":"GdUjjWFYbeLnC4YL","authorType":"OPERATOR"},"attachmentType":"PHOTO","attachmentId":"YTR9KZ8LmNp5QW9S"}]}},"Nothing found":{"value":{"items":[]}}}}}},"400":{"$ref":"#/components/responses/BadRequest","description":"Bad request. The request is not valid."},"401":{"$ref":"#/components/responses/Unauthorized","description":"Unauthorized. The authorization token is missing or not valid."},"403":{"$ref":"#/components/responses/Forbidden","description":"Forbidden. The caller is not allowed to access this resource."},"429":{"$ref":"#/components/responses/TooManyRequests","description":"Too many requests. The rate limit has been exceeded."},"default":{"$ref":"#/components/responses/InternalServerError","description":"An unexpected error occurred."}},"deprecated":false,"x-kong-route-defaults":{"strip_path":false,"paths":["~/inspections/attachments/search/?$"]}}},"/inspections/defects":{"get":{"tags":["Fleet Inspections API"],"summary":"Get defects found in reports","description":"Returns all the defects found in an inspection report. Related reports are excluded from response","operationId":"defects-get","parameters":[{"name":"inspectable_id","in":"query","description":"Unique ID for an inspectable, i.e. asset/vehicle (asset ID/vehicle ID). Required if *inspectable_type* is specified.","required":false,"schema":{"$ref":"#/components/schemas/InspectableId"}},{"name":"inspectable_type","in":"query","description":"Type of an inspectable asset. Required if *inspectable_id* is specified.","required":false,"schema":{"$ref":"#/components/schemas/InspectableType"}},{"name":"report_id","in":"query","description":"Report identifier","required":false,"schema":{"$ref":"#/components/schemas/Identifier"}},{"name":"status","in":"query","description":"An array of defect statuses","required":false,"schema":{"maxItems":10,"minItems":0,"uniqueItems":true,"type":"array","items":{"$ref":"#/components/schemas/DefectStatus"}}},{"name":"severity","in":"query","description":"An array of defect severities","required":false,"schema":{"maxItems":10,"minItems":0,"uniqueItems":true,"type":"array","items":{"$ref":"#/components/schemas/DefectSeverity"}}},{"$ref":"#/components/parameters/QueryPageToken"}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"type":"object","properties":{"links":{"maxItems":100,"minItems":0,"uniqueItems":true,"type":"array","description":"Related resources, pagination information","items":{"$ref":"#/components/schemas/Link"}},"items":{"maxItems":100,"minItems":0,"uniqueItems":true,"type":"array","description":"A list of defects","items":{"$ref":"#/components/schemas/Defect"}}},"additionalProperties":false},"examples":{"No defects found":{"value":{"links":[{"method":"GET","rel":"self","href":"/defects?page_token=hrJ6WwqTaeisB76XQo0t"}],"items":[]}},"Defects for an inspectable":{"value":{"links":[{"method":"GET","rel":"self","href":"/defects?page_token=hrJ6WwqTaeisB76XQo0t"},{"method":"GET","rel":"prev","href":"/defects?page_token=Tcjgj46EIlwaJneoAv8X"},{"method":"GET","rel":"next","href":"/defects?page_token=WeYdy14vr0lVEYrBJurX"}],"items":[{"severity":"CRITICAL","reportResults":[{"reportResultId":"CDPz6QZr3TefqwyU","templateItemId":"eJgYcuWRCu7rTPh7","reportId":"PnXqyyXeP4zLmTez","templateId":"vTyUMQGJZw3na73U"},{"reportResultId":"mX3RrcEYNpnPJr4S","templateItemId":"pMTx6W17k85Umk2r","reportId":"gfWdJRCyN6vj5Vk1","templateId":"LUctByt3cDZsHKDA"}],"status":"PENDING","inspectable":{"inspectableId":"RsBHkJkZ86F1jUNT","inspectableType":"VEHICLE"},"attachments":[{"linkedAt":"2024-04-16T12:07:02.229Z","attachmentId":"WNP7fQwB9B2tu4LB"}],"defectId":"cwXWQv36e1FJk17F","etag":"XbbHLPtEcrtuZNfsNpXv1F8nzGc78B","comment":"crack on the back of a mirror","links":[{"method":"GET","rel":"self","href":"/defects/cwXWQv36e1FJk17F"}],"statusHistory":[{"status":"PENDING","signatureAttachmentId":"WNP7fQwB9B2tu4LB"}]},{"severity":"CRITICAL","attachments":[{"linkedAt":"2024-04-16T12:07:02.229Z","attachmentId":"vdzkcH3V4X35asyd"},{"linkedAt":"2024-04-16T12:07:02.229Z","attachmentId":"5CmN6Q7mMmpxrraA"},{"linkedAt":"2024-04-16T12:07:02.229Z","attachmentId":"6KPnXQhwE6QGwbb5"}],"status":"CERTIFIED","inspectable":{"inspectableId":"kmG4GETs1UJWYAy2","inspectableType":"VEHICLE"},"links":[{"method":"GET","rel":"self","href":"/defects/rv2B4jVLxUj5KHpv"}],"defectId":"rv2B4jVLxUj5KHpv","etag":"NzbTqsWxKLJ16McPDTuZqY2EKX3xBq","statusHistory":[{"status":"PENDING","signatureAttachmentId":"vdzkcH3V4X35asyd"},{"status":"FIXED","signatureAttachmentId":"5CmN6Q7mMmpxrraA"},{"status":"CERTIFIED","signatureAttachmentId":"6KPnXQhwE6QGwbb5"}]},{"severity":"MINOR","reportResults":[{"reportResultId":"EFPz6QZr3TefqwUv","templateItemId":"lJgYcuWRCu7rTPh9","reportId":"QmXqyyXeP4zLmULz","templateId":"KTyUMQGJZw3na73B"},{"reportResultId":"nX3RrcEYNpnPJr4R","templateItemId":"qMTx6W17k85Umk2s","reportId":"lfWdJRCyN6vj5Vk2","templateId":"MUctByt3cDZsHKDB"}],"status":"PENDING","inspectable":{"inspectableId":"TsBHkJkZ86F1jKRN","inspectableType":"VEHICLE"},"attachments":[{"linkedAt":"2024-04-16T12:07:02.229Z","attachmentId":"XNP7fQwB9B2tu4LC"}],"defectId":"DwXWQv36e1FJk18G","etag":"UVbHLPtEcrtuZNfsNpXv1F8nzGc79C","comment":"left wiper is not working","links":[{"method":"GET","rel":"self","href":"/defects/DwXWQv36e1FJk18G"}],"statusHistory":[{"status":"PENDING","signatureAttachmentId":"XNP7fQwB9B2tu4LC"}]}]}}}}}},"401":{"$ref":"#/components/responses/Unauthorized","description":"Unauthorized. The authorization token is missing or not valid."},"403":{"$ref":"#/components/responses/Forbidden","description":"Forbidden. The caller is not allowed to access this resource."},"404":{"$ref":"#/components/responses/NotFound","description":"Not found."},"429":{"$ref":"#/components/responses/TooManyRequests","description":"Too many requests. The rate limit has been exceeded."},"default":{"$ref":"#/components/responses/InternalServerError","description":"An unexpected error occurred."}},"deprecated":false,"x-kong-route-defaults":{"strip_path":false,"paths":["~/inspections/defects/?$"]}}},"/inspections/defects/{defect-id}":{"patch":{"tags":["Fleet Inspections API"],"summary":"Update defect found in reports.","description":"Update a defect associated with reports.\n\nAdditions (tail only) are supported for */attachments*\n\nReplacements are supported for */status*:\n  - Only transitions PENDING ↔ FIXED is permitted\n  - Attachment of type SIGNATURE must be included with each request modifying *status*\n  - Updating a defect that has already been CERTIFIED is not permitted\n  - otherwise 422 Unprocessable Content is returned.","operationId":"defects-id-patch","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/IfMatch"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonPatchDocument"},"examples":{"Update defect from reports, signature attachment included":{"value":[{"op":"replace","value":"FIXED","path":"/status"},{"op":"add","value":{"attachmentId":"kBvkwZXJUCpuatHoMvJw"},"path":"/attachments/-"}]},"Add an attachment to the defect":{"value":[{"op":"add","value":{"attachmentId":"dcReUfgsi9AsjVUHHltx"},"path":"/attachments/-"}]}}}}},"responses":{"204":{"$ref":"#/components/responses/NoContent","description":"No content. The request was applied."},"400":{"$ref":"#/components/responses/BadRequest","description":"Bad request. The request is not valid."},"401":{"$ref":"#/components/responses/Unauthorized","description":"Unauthorized. The authorization token is missing or not valid."},"403":{"$ref":"#/components/responses/Forbidden","description":"Forbidden. The caller is not allowed to access this resource."},"415":{"$ref":"#/components/responses/UnsupportedMediaType","description":"Unsupported media type. The content type of the request is not supported."},"422":{"$ref":"#/components/responses/UnprocessableContent","description":"Unprocessable entity. The request is well formed but cannot be applied."},"429":{"$ref":"#/components/responses/TooManyRequests","description":"Too many requests. The rate limit has been exceeded."},"default":{"$ref":"#/components/responses/InternalServerError","description":"An unexpected error occurred."}},"deprecated":false,"x-vzc-internal-description":"Update a defect associated with reports.\n\nAdditions (tail only) are supported for */attachments*\n\nReplacements are supported for */status*:\n  - Only transitions PENDING ↔ FIXED and FIXED → CERTIFIED are permitted\n  - Attachment of type SIGNATURE must be included with each request modifying *status*\n  - Updating a defect that has already been CERTIFIED is not permitted\n  - otherwise 422 Unprocessable Content is returned.","x-kong-route-defaults":{"strip_path":false,"paths":["~/inspections/defects/[^/]+/?$"]}},"parameters":[{"name":"defect-id","in":"path","description":"Defect Identifier","required":true,"schema":{"$ref":"#/components/schemas/Identifier"}}]},"/inspections/reports":{"get":{"tags":["Fleet Inspections API"],"summary":"Get all reports","description":"Returns all the inspection reports in an account.\n\nIt is possible to retrieve additional information by including the following values into *embed* query parameter:\n  - *attachments* - to include detailed attachments linked to report\n  - *analyticsEvents* - to access analytics events related to report","operationId":"reports-get","parameters":[{"$ref":"#/components/parameters/QueryPageToken"},{"name":"inspectable_id","in":"query","description":"Unique ID for an inspectable, i.e. asset/vehicle (asset ID/vehicle ID). Required if *inspectable_type* is specified.","required":false,"schema":{"$ref":"#/components/schemas/InspectableId"}},{"name":"inspectable_type","in":"query","description":"Type of an inspectable asset. Required if *inspectable_id* is specified.","required":false,"schema":{"$ref":"#/components/schemas/InspectableType"}},{"name":"related_defects_status","in":"query","description":"Filter by the aggregated status of related defects.","required":false,"style":"form","explode":false,"schema":{"maxItems":4,"minItems":1,"uniqueItems":true,"type":"array","description":"The overall status of all related defects.","items":{"$ref":"#/components/schemas/InspectionStatus"}}},{"name":"q","in":"query","description":"Filter for inspection history by input text search vehicle or driver name.","required":false,"schema":{"maxLength":255,"minLength":3,"pattern":"^[ a-zA-Z0-9-]{3,255}$","type":"string"}},{"name":"start_submitted_at","in":"query","description":"Filter for inspection history by a date range of when the inspection was created start date.","required":false,"schema":{"maxLength":24,"minLength":24,"type":"string","format":"date-time"}},{"name":"end_submitted_at","in":"query","description":"Filter for inspection history by a date range of when the inspection was created end date.","required":false,"schema":{"maxLength":24,"minLength":24,"type":"string","format":"date-time"}},{"name":"embed","in":"query","description":"Field name expressions to expand or embed sub-resources within representations.","required":false,"style":"form","explode":false,"schema":{"maxItems":2,"minItems":0,"uniqueItems":true,"type":"array","items":{"maxLength":200,"minLength":1,"pattern":"^(attachments|analyticsEvents)$","type":"string"}}},{"name":"inspectable_group","in":"query","description":"Dictionary of up to 50 inspectable group keys to selection criteria.\nEach key is in the form `{groupId}.{include|exclude}.{inspectableType}` (e.g., `782346.include.VEHICLE`).\nEach value is a comma-separated list of inspectable IDs or `ALL`.\nFor accounts without groups, use the key `NONE.include.{inspectableType}`.\nThe total number of inspectable IDs in all `include` and all `exclude` values across all groups must not exceed 50.\nIf an inspectable ID appears in both `include` and `exclude` for the same group and inspectable type, it will be excluded.\nExample:\n  inspectable_group[782346.include.VEHICLE]=T7nMzcDXa7U4YU8D,RsBHkJkZ86F1jUNT\n  &inspectable_group[123456.exclude.VEHICLE]=kmG4GETs1UJWYAy2\n  &inspectable_group[568794.include.VEHICLE]=ALL\n  &inspectable_group[NONE.include.VEHICLE]=TsBHkJkZ86F1jKRN,z8L68MGXzCGx32sa,rUs4WqtgSEJYMvuT","required":false,"explode":true,"schema":{"maxProperties":50,"minProperties":1,"type":"object","additionalProperties":false,"description":"Selection criteria for inspectables within a group"}}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"type":"object","properties":{"links":{"maxItems":100,"minItems":0,"uniqueItems":true,"type":"array","description":"Related resources, pagination information","items":{"$ref":"#/components/schemas/Link"}},"items":{"maxItems":100,"minItems":0,"uniqueItems":true,"type":"array","description":"A list of all the reports","items":{"$ref":"#/components/schemas/Report"}}},"additionalProperties":false},"examples":{"Nothing found":{"value":{"links":[{"method":"GET","rel":"self","href":"/reports?page_token=Ly87MJCYGG4rM4bwTJfp"}],"items":[]}},"List of reports":{"value":{"links":[{"method":"GET","rel":"self","href":"/reports?page_token=Ly87MJCYGG4rM4bwTJfp"},{"method":"GET","rel":"prev","href":"/reports?page_token=RA5Cb1Wc7NwBe972DwAG"},{"method":"GET","rel":"next","href":"/reports?page_token=Y56ZYw5ZGBuH5ky2grrE"}],"items":[{"submittedAt":"2024-03-26T21:14:19.749Z","templateId":"wpZ1FS6r5Px1GSc6","inspectable":{"inspectableType":"VEHICLE","inspectableRegistrationNumber":"191D2234","inspectableName":"Skoda","inspectableId":"T7nMzcDXa7U4YU8D","inspectableIdentificationNumber":"BOW3658575"},"relatedDefectsStatus":"FAILED","analyticsEvents":[],"reportType":"PRE_TRIP","reportId":"DpW4kx5V1GXgmP2Q","results":[],"defects":[{"linkedAt":"2024-04-16T12:07:02.229Z","defectId":"ai2ll3069rx0xz26"},{"linkedAt":"2024-04-16T12:07:02.229Z","defectId":"t98yrewtug0rmbia"}],"attachments":[{"linkedAt":"2024-04-16T12:07:02.229Z","attachmentId":"1FDgE6LtYEYJdMyY"}],"comment":"Vehicle is covered in mud","operator":{"operatorType":"DRIVER","operatorName":"Mike","operatorId":"MH5wPMq6uUBCwK2L"},"links":[{"method":"GET","rel":"self","href":"/reports/DpW4kx5V1GXgmP2Q"}],"inspectionType":"DVIR"}]}},"List of reports with embedded report attachments and analyticsEvents":{"value":{"links":[{"method":"GET","rel":"self","href":"/reports?page_token=Ly87MJCYGG4rM4bwTJfp"},{"method":"GET","rel":"prev","href":"/reports?page_token=RA5Cb1Wc7NwBe972DwAG"},{"method":"GET","rel":"next","href":"/reports?page_token=Y56ZYw5ZGBuH5ky2grrE"}],"items":[{"submittedAt":"2024-03-26T21:14:19.749Z","templateId":"wpZ1FS6r5Px1GSc6","inspectable":{"inspectableType":"VEHICLE","inspectableRegistrationNumber":"191D2234","inspectableName":"Skoda","inspectableId":"T7nMzcDXa7U4YU8D","inspectableIdentificationNumber":"BOW3658575"},"relatedDefectsStatus":"FAILED","analyticsEvents":[{"name":"inspection.submitted","traceId":"97c6c24428c142feafc7503b0a80d049","analyticsEventId":"jruKC7tySF1YPfVK","timestamp":"2024-11-13T13:40:19.749Z"},{"name":"inspection.started","traceId":"97c6c24428c142feafc7503b0a80d049","analyticsEventId":"dNvq9u9UXTMgX6GQ","timestamp":"2024-11-13T13:32:01.587Z"}],"reportType":"PRE_TRIP","reportId":"DpW4kx5V1GXgmP2Q","results":[],"defects":[{"linkedAt":"2024-04-16T12:07:02.229Z","defectId":"dpz18jbnmgycbgvn"},{"linkedAt":"2024-04-16T12:07:02.229Z","defectId":"sbdbimlxt5v3gmg4"}],"attachments":[{"data":[],"name":"Signing report","attachmentId":"1FDgE6LtYEYJdMyY","linkedAt":"2024-04-16T12:07:02.229Z","author":{"name":"John Doe","authorId":"GdUjjWFYbeLnC4YL","authorType":"OPERATOR"},"attachmentType":"SIGNATURE","links":[{"method":"GET","rel":"self","href":"/attachments/1FDgE6LtYEYJdMyY"}]}],"comment":"Vehicle is covered in mud","operator":{"operatorType":"DRIVER","operatorName":"Mike","operatorId":"MH5wPMq6uUBCwK2L"},"links":[{"method":"GET","rel":"self","href":"/reports/DpW4kx5V1GXgmP2Q"}],"inspectionType":"DVIR"}]}}}}}},"400":{"$ref":"#/components/responses/BadRequest","description":"Bad request. The request is not valid."},"401":{"$ref":"#/components/responses/Unauthorized","description":"Unauthorized. The authorization token is missing or not valid."},"403":{"$ref":"#/components/responses/Forbidden","description":"Forbidden. The caller is not allowed to access this resource."},"404":{"$ref":"#/components/responses/NotFound","description":"Not found."},"429":{"$ref":"#/components/responses/TooManyRequests","description":"Too many requests. The rate limit has been exceeded."},"default":{"$ref":"#/components/responses/InternalServerError","description":"An unexpected error occurred."}},"deprecated":false,"x-kong-route-defaults":{"strip_path":false,"paths":["~/inspections/reports/?$"]}}},"/inspections/reports/{report-id}":{"get":{"tags":["Fleet Inspections API"],"summary":"Get report","description":"Returns an individual inspection report based on Report Id","operationId":"reports-id-get","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Report"},"examples":{"Report details of a report":{"value":{"submittedAt":"2024-03-26T21:14:19.749Z","templateId":"wpZ1FS6r5Px1GSc6","inspectable":{"inspectableType":"VEHICLE","inspectableRegistrationNumber":"191D2234","inspectableName":"Skoda","inspectableId":"T7nMzcDXa7U4YU8D","inspectableIdentificationNumber":"BOW3658575"},"reportType":"PRE_TRIP","reportId":"DpW4kx5V1GXgmP2Q","results":[{"resultValue":"130535","templateItemId":"WCm5wdUzwVtSHTu8","resultType":"OK"},{"resultValue":"2019-07-30T06:43:40.252Z","templateItemId":"xpbxwV7gHuBFZ63x","resultType":"OK"},{"resultValue":"53.3243941,-6.3282749","templateItemId":"ZgaDS1KtW34AfyaR","resultType":"OK"},{"defects":[{"linkedAt":"2024-04-26T21:14:18.229Z","defectId":"KCEz2nbmwmucUN3x"}],"templateItemId":"ktNp8KT16Y8jfZjd","resultType":"DEFECT"},{"templateItemId":"Hf477tPdFeGNZgWf","resultType":"OK"},{"resultValue":"i64tlg5zfgizqsah","templateItemId":"j8rd3fe1l0vr73br","resultType":"OK","attachments":[{"attachmentId":"i64tlg5zfgizqsah"}]}],"defects":[{"linkedAt":"2024-04-16T12:07:02.229Z","defectId":"ai2ll3069rx0xz26"},{"linkedAt":"2024-04-16T12:07:02.229Z","defectId":"t98yrewtug0rmbia"}],"attachments":[{"linkedAt":"2024-04-16T12:07:02.229Z","attachmentId":"1FDgE6LtYEYJdMyY"}],"comment":"Vehicle is covered in mud","operator":{"operatorType":"DRIVER","operatorName":"Mike","operatorId":"MH5wPMq6uUBCwK2L"},"links":[{"method":"GET","rel":"self","href":"/reports/DpW4kx5V1GXgmP2Q"},{"method":"GET","rel":"appendix","href":"/analytics/events?trace_id=8f9f6d49d8ad498f803e5775756c52b6"}],"inspectionType":"DVIR"}}}}}},"400":{"$ref":"#/components/responses/BadRequest","description":"Bad request. The request is not valid."},"401":{"$ref":"#/components/responses/Unauthorized","description":"Unauthorized. The authorization token is missing or not valid."},"403":{"$ref":"#/components/responses/Forbidden","description":"Forbidden. The caller is not allowed to access this resource."},"404":{"$ref":"#/components/responses/NotFound","description":"Not found."},"429":{"$ref":"#/components/responses/TooManyRequests","description":"Too many requests. The rate limit has been exceeded."},"default":{"$ref":"#/components/responses/InternalServerError","description":"An unexpected error occurred."}},"deprecated":false,"x-kong-route-defaults":{"strip_path":false,"paths":["~/inspections/reports/[^/]+/?$"]}},"parameters":[{"name":"report-id","in":"path","description":"Uniqiue Identifier of Report","required":true,"schema":{"$ref":"#/components/schemas/Identifier"}}]},"/inspections/templates":{"get":{"tags":["Fleet Inspections API"],"summary":"Get list of templates","description":"Returns a list of templates along with template identifier, name, status and template items.","operationId":"templates-get","parameters":[{"name":"status","in":"query","description":"Filter by the current status of a template.","required":false,"style":"form","explode":false,"schema":{"maxItems":3,"minItems":1,"uniqueItems":true,"type":"array","description":"The status of a template.","items":{"$ref":"#/components/schemas/TemplateStatus"}}}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"maxItems":100,"minItems":0,"uniqueItems":true,"type":"array","description":"A list with the template identifier, name, status and template items","items":{"$ref":"#/components/schemas/Template"}}},"additionalProperties":false},"examples":{"Nothing found":{"value":{"items":[]}},"List of templates":{"value":{"items":[{"templateItems":[{"name":"Odometer reading","templateItemId":"X8mg1bE81gKHxaTe","valueType":"METER"},{"comment":"Where vehicle has been inspected","name":"Where inspected","templateItemId":"sLt5QVmBSdcRDmjz","valueType":"LOCATION"},{"templateItemId":"cQcGZfvHY2spcM88","name":"Steering wheel play","comment":"Confirm no backlash","tags":["Steering Mechanism"],"valueType":"CHECK"},{"name":"Steering linkage","templateItemId":"Xumn1qDssT4LjUEd","tags":["Steering Mechanism"],"valueType":"CHECK"},{"name":"Air compressor last operator","templateItemId":"TArcm8HVXF2nAEFN","requireValue":false,"valueType":"TEXT"},{"name":"In Cabin","templateItemId":"En0I5iQzgoiozLjk","requireValue":true,"valueType":"PHOTO"}],"itemsSelectionType":"SELECT_DEFECTS_ONLY","status":"ACTIVE","comment":"Inspection template for DVIR tippers","links":[{"method":"GET","rel":"self","href":"/templates/9BuVeS9ZykaJQT4x"}],"name":"DVIR tippers","templateId":"9BuVeS9ZykaJQT4x"},{"templateItems":[{"name":"Odometer reading","templateItemId":"Qk43BGwJnkqy7msp","valueType":"METER"},{"comment":"Where vehicle has been inspected","name":"Where inspected","templateItemId":"IJbJDuYlDk22JFkT","valueType":"LOCATION"},{"templateItemId":"n5cbtwqEUGd6S86C","name":"Steering wheel play","comment":"Confirm no backlash","tags":["Steering Mechanism"],"valueType":"CHECK"},{"name":"Steering linkage","templateItemId":"rBEFrkQ7lEeSpbkO","tags":["Steering Mechanism"],"valueType":"CHECK"},{"name":"Air compressor last operator","templateItemId":"sQ38QBrncUC4Am0h","requireValue":false,"valueType":"TEXT"},{"name":"In Cabin","templateItemId":"sVggQT7h60IX5Cas","requireValue":true,"valueType":"PHOTO"}],"itemsSelectionType":"SELECT_DEFECTS_ONLY","status":"DRAFT","comment":"Inspection template for Semis post-shift DVIR","links":[{"method":"GET","rel":"self","href":"/templates/ULEwW1Vuds1GWAqQ"}],"name":"Semis post-shift DVIR","templateId":"ULEwW1Vuds1GWAqQ"}]}}}}}},"401":{"$ref":"#/components/responses/Unauthorized","description":"Unauthorized. The authorization token is missing or not valid."},"403":{"$ref":"#/components/responses/Forbidden","description":"Forbidden. The caller is not allowed to access this resource."},"404":{"$ref":"#/components/responses/NotFound","description":"Not found."},"429":{"$ref":"#/components/responses/TooManyRequests","description":"Too many requests. The rate limit has been exceeded."},"default":{"$ref":"#/components/responses/InternalServerError","description":"An unexpected error occurred."}},"deprecated":false,"x-kong-route-defaults":{"strip_path":false,"paths":["~/inspections/templates/?$"]}}},"/inspections/templates/{template-id}":{"get":{"tags":["Fleet Inspections API"],"summary":"Get template by its ID","description":"Returns an individual template along with its items.","operationId":"templates-id-get","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Template"},"examples":{"Template with items":{"value":{"templateItems":[{"name":"Odometer reading","templateItemId":"X8mg1bE81gKHxaTe","valueType":"METER"},{"comment":"Where vehicle has been inspected","name":"Where inspected","templateItemId":"sLt5QVmBSdcRDmjz","valueType":"LOCATION"},{"templateItemId":"cQcGZfvHY2spcM88","name":"Steering wheel play","comment":"Confirm no backlash","tags":["Steering Mechanism"],"valueType":"CHECK"},{"name":"Steering linkage","templateItemId":"Xumn1qDssT4LjUEd","tags":["Steering Mechanism"],"valueType":"CHECK"},{"name":"Air compressor last operator","templateItemId":"TArcm8HVXF2nAEFN","requireValue":true,"valueType":"TEXT"},{"name":"Inside Cabin","templateItemId":"3p8HsT4uXAUgmyFD","requireValue":false,"valueType":"PHOTO"}],"itemsSelectionType":"SELECT_DEFECTS_ONLY","status":"ACTIVE","comment":"Inspection template for All trucks","links":[{"method":"GET","rel":"self","href":"/templates/LBq7fgyagQf4GaDF"}],"name":"All trucks","templateId":"LBq7fgyagQf4GaDF"}}}}}},"400":{"$ref":"#/components/responses/BadRequest","description":"Bad request. The request is not valid."},"401":{"$ref":"#/components/responses/Unauthorized","description":"Unauthorized. The authorization token is missing or not valid."},"403":{"$ref":"#/components/responses/Forbidden","description":"Forbidden. The caller is not allowed to access this resource."},"404":{"$ref":"#/components/responses/NotFound","description":"Not found."},"429":{"$ref":"#/components/responses/TooManyRequests","description":"Too many requests. The rate limit has been exceeded."},"default":{"$ref":"#/components/responses/InternalServerError","description":"An unexpected error occurred."}},"deprecated":false,"x-kong-route-defaults":{"strip_path":false,"paths":["~/inspections/templates/[^/]+/?$"]}},"parameters":[{"name":"template-id","in":"path","description":"Template identifier","required":true,"schema":{"$ref":"#/components/schemas/Identifier"}}]}},"components":{"schemas":{"InspectionType":{"type":"string","description":"An inspectionType can be of an enum","enum":["DVIR"]},"PrivacySubjectSearchRequest":{"title":"PrivacySubjectSearchRequest","type":"object","properties":{"lastName":{"maxLength":120,"minLength":1,"pattern":"^[^\\n]+$","type":"string","description":"The last name of the person to be searched."},"firstName":{"maxLength":120,"minLength":1,"pattern":"^[^\\n]+$","type":"string","description":"The first name of the person to be searched."}},"additionalProperties":false,"description":"The request of privacy subject search"},"Operator":{"type":"object","properties":{"operatorType":{"$ref":"#/components/schemas/OperatorType"},"operatorName":{"maxLength":120,"minLength":1,"pattern":"^[^\\n]+$","type":"string","description":"Name of an operator.","readOnly":true},"operatorId":{"$ref":"#/components/schemas/Identifier"}},"additionalProperties":false,"description":"Person performing an inspection"},"PrivacySubjectLabel":{"title":"PrivacySubjectLabel","type":"object","properties":{"name":{"maxLength":120,"minLength":1,"pattern":"^[^\\n]+$","type":"string","description":"Full name of the subject.","readOnly":true},"metadata":{"maxItems":100,"minItems":0,"uniqueItems":true,"type":"array","description":"List of identifying traits. These traits are used to help the user make a more informed selection when there are subjects with the same name.","items":{"$ref":"#/components/schemas/PrivacySubjectMetadata"}},"type":{"maxLength":120,"minLength":0,"pattern":"^[^\\n]*$","type":"string","description":"Localized type of the subject.","readOnly":true}},"additionalProperties":false,"description":"The subject's name and type, useful for the subject selection process in the privacy request flow."},"JsonPatchDocument":{"title":"A JSON Patch document as defined by RFC 6902","maxItems":10,"minItems":0,"uniqueItems":true,"type":"array","description":"Represents a list of operations to apply to a resource for partial updates","items":{"title":"A JSON Patch operation as defined by RFC 6902","required":["op","path"],"type":"object","properties":{"op":{"title":"The operation to be performed","maxLength":120,"minLength":1,"pattern":"^(add|remove|replace|move|copy|test)$","type":"string","description":"Indicates the operaton to be performed,as per RFC 6902"},"from":{"title":"A string containing a JSON Pointer value","maxLength":2000,"minLength":0,"pattern":"^(\\/[^\\n]+)*$","type":"string","description":"A string containing a [RFC 6901](https://www.rfc-editor.org/rfc/rfc6901.html) JSON Pointer value that references the source location where the operation is applied"},"value":{"oneOf":[{"maxLength":2000,"minLength":1,"pattern":"^[^\\n]+$","type":"string","description":"The value to be used within the operations"},{"type":"object","additionalProperties":true,"description":"The value to be used within the operations"}]},"path":{"title":"A JSON-Pointer","maxLength":2000,"minLength":1,"pattern":"^\\/[^\\n]+$","type":"string","description":"A string containing a [RFC 6901](https://www.rfc-editor.org/rfc/rfc6901.html) JSON Pointer value that references the target location where the operation is performed"}},"additionalProperties":false,"description":"Defines an individual operation within a JsonPatchDocument"}},"Attachment":{"title":"Attachment","required":["attachmentType","author"],"type":"object","properties":{"data":{"maxItems":100,"minItems":0,"uniqueItems":true,"type":"array","description":"Various media for an attachment","readOnly":true,"items":{"type":"object","properties":{"rel":{"maxLength":120,"minLength":1,"pattern":"^(enclosure)$","type":"string","description":"Meaning of the values [described at IANA](https://www.iana.org/assignments/link-relations/link-relations.xhtml)\n  - *enclosure* - media, typically photo or document related to the resource, potentially large and might require special handling\n"},"href":{"maxLength":2000,"minLength":1,"pattern":"^[^\\n]+$","type":"string","description":"URL of relevant data","format":"uri"},"method":{"type":"string","description":"HTTP method to interact with data","enum":["GET","PUT"]},"length":{"maximum":6291456,"minimum":1,"type":"integer","description":"Size of a data referenced in *href* in bytes","format":"int32"},"tags":{"maxItems":100,"minItems":0,"uniqueItems":true,"type":"array","description":"Labels and attributes of a data enclosure","readOnly":true,"items":{"maxLength":120,"minLength":1,"pattern":"^[a-z0-9]+$","type":"string","description":"Individual label or attribute of a data enclosure","readOnly":true}}},"additionalProperties":false}},"name":{"maxLength":120,"minLength":1,"pattern":"^[^\\n]+$","type":"string","description":"Name of an attachment.","nullable":true},"comment":{"maxLength":2000,"minLength":0,"pattern":"^[^\\n]*$","type":"string","description":"Attachment details","nullable":true},"enclosure":{"required":["contentLength","contentType"],"type":"object","properties":{"contentLength":{"maximum":6291456,"minimum":1,"type":"integer","description":"Size of media in bytes","format":"int32"},"contentType":{"maxLength":120,"minLength":3,"pattern":"^(image\\/jpeg|image\\/png)$","type":"string","description":"Media type specifying format of the contents. See [RFC 9110](https://www.rfc-editor.org/rfc/rfc9110.html#name-content-type) for details"}},"additionalProperties":false,"description":"Related media, typically photo or document, potentially large and thus requiring separate upload facility","writeOnly":true},"attachmentId":{"maxLength":120,"minLength":1,"pattern":"^[A-Za-z0-9-]{1,120}$","type":"string","description":"Unique identifier of an attachment.","readOnly":true},"author":{"required":["authorType"],"type":"object","properties":{"name":{"maxLength":120,"minLength":1,"pattern":"^[^\\n]+$","type":"string","description":"Name of the author created an attachment.","readOnly":true},"authorId":{"maxLength":120,"minLength":1,"pattern":"^[A-Za-z0-9-]{1,120}$","type":"string","description":"Unique identifier of the author created an attachment.","readOnly":true},"authorType":{"type":"string","description":"Person that created an attachment","enum":["OPERATOR","COMPLIANCE_MANAGER"]}},"additionalProperties":false,"description":"Person that created an attachment"},"attachmentType":{"$ref":"#/components/schemas/AttachmentType"},"links":{"maxItems":100,"minItems":0,"uniqueItems":true,"type":"array","description":"Related resources","readOnly":true,"items":{"$ref":"#/components/schemas/Link"}}},"additionalProperties":true,"description":"Inspection attachment: photo, signature, document, comment.\n\n*name* would be used as file name if enclosure is uploaded.\n"},"OperatorType":{"type":"string","description":"Role of a person who prepared the report","enum":["DRIVER"]},"DefectSearchResponse":{"title":"Defect Search Response","type":"object","properties":{"status":{"$ref":"#/components/schemas/DefectStatus"},"severity":{"$ref":"#/components/schemas/DefectSeverity"},"defectId":{"maxLength":120,"minLength":1,"pattern":"^[A-Za-z0-9-]{1,120}$","type":"string","description":"Unique identifier of a defect.","readOnly":true}},"additionalProperties":false,"description":"Defect details of a vehicle or other asset"},"Template":{"title":"Template","required":["name"],"type":"object","properties":{"templateItems":{"maxItems":200,"minItems":0,"uniqueItems":true,"type":"array","description":"Items bound to a template","items":{"$ref":"#/components/schemas/TemplateItem"}},"itemsSelectionType":{"$ref":"#/components/schemas/ItemsSelectionType"},"status":{"$ref":"#/components/schemas/TemplateStatus"},"comment":{"maxLength":120,"minLength":0,"pattern":"^(?!\\s)(?!.*\\s$)[\\S\\s]+(?<!\\s)$","type":"string","description":"Notes about the template","nullable":true},"links":{"maxItems":100,"minItems":0,"uniqueItems":true,"type":"array","description":"Related resources","readOnly":true,"items":{"$ref":"#/components/schemas/Link"}},"name":{"maxLength":60,"minLength":3,"pattern":"^\\S[^\\n]+\\S$","type":"string","description":"Unique name of the template."},"templateId":{"maxLength":120,"minLength":1,"pattern":"^[A-Za-z0-9-]{1,120}$","type":"string","description":"Unique identifier for a template.","readOnly":true}},"additionalProperties":false,"description":"A name will identify the template."},"TemplateStatus":{"type":"string","description":"Status of a template:\n  - ACTIVE template is visible to drivers to inspect with,\n  - INACTIVE templates are used only to display historical reports and for backward compatibility of mobile apps,\n  - DRAFT is in the process of being edited by the admin and not available for inspections yet.\n","enum":["ACTIVE","INACTIVE","DRAFT"]},"DefectSeverity":{"type":"string","description":"Severity of the defect.","enum":["MINOR","CRITICAL"]},"TemplateItemValueType":{"type":"string","description":"Defines the type of data element within a template","enum":["CHECK","METER","TEXT","LOCATION","PHOTO"]},"InspectionStatus":{"type":"string","description":"Overall status of all related CRITICAL defects. Calculated only when *relatedDefects* are included into the response.\n  - PASSED when no CRITICAL defects were reported\n  - FAILED when at least one reported CRITICAL defect is PENDING\n  - RESOLVED when all CRITICAL defects are FIXED or CERTIFIED and at least one has status FIXED\n  - CERTIFIED when all reported CRITICAL defects are CERTIFIED\n","enum":["PASSED","FAILED","RESOLVED","CERTIFIED"]},"PrivacySubjectSearchResponse":{"title":"PrivacySubjectSearchResponse","type":"object","properties":{"results":{"maxItems":100,"minItems":0,"uniqueItems":true,"type":"array","description":"A list of privacy subject search results","readOnly":true,"items":{"$ref":"#/components/schemas/PrivacySubjectInfo"}}},"additionalProperties":false,"description":"The response of privacy subject search"},"Inspectable":{"type":"object","properties":{"inspectableType":{"$ref":"#/components/schemas/InspectableType"},"inspectableRegistrationNumber":{"maxLength":120,"minLength":0,"pattern":"^[^\\n]*$","type":"string","description":"Registration number of the asset","readOnly":true},"inspectableName":{"maxLength":120,"minLength":0,"pattern":"^[^\\n]*$","type":"string","description":"Name of the asset","readOnly":true},"inspectableId":{"$ref":"#/components/schemas/InspectableId"},"inspectableIdentificationNumber":{"maxLength":120,"minLength":0,"pattern":"^[^\\n]*$","type":"string","description":"Identification number of the asset","readOnly":true}},"additionalProperties":false,"description":"Asset under inspection"},"Identifier":{"maxLength":120,"minLength":1,"pattern":"^[A-Za-z0-9-]{1,120}$","type":"string","description":"Unique identifier for a given resource."},"AiTemplateResponse":{"title":"AI Generated Template Response","type":"object","properties":{"comment":{"maxLength":120,"minLength":0,"pattern":"^(?!\\s)(?!.*\\s$)[\\S\\s]+(?<!\\s)$","type":"string","description":"Notes about the template"},"name":{"maxLength":60,"minLength":3,"pattern":"^\\S[^\\n]+\\S$","type":"string","description":"Name of the generated template"},"fallabckInspectable":{"maxLength":60,"minLength":3,"pattern":"^\\S[^\\n]+\\S$","type":"string","description":"Name of the inspectable to use as a fallback when no specific inspectable is identified"},"templateItems":{"maxItems":200,"minItems":0,"type":"array","description":"List of template items generated by AI","items":{"type":"object","properties":{"position":{"maximum":199,"minimum":0,"type":"integer","description":"Display order position of the template item (zero-based index)","format":"int32"},"valueType":{"$ref":"#/components/schemas/TemplateItemValueType"},"name":{"maxLength":120,"minLength":3,"pattern":"^\\S[^\\n]+\\S$","type":"string","description":"Name of the template item"},"comment":{"maxLength":2000,"minLength":0,"pattern":"^(?!\\s)(?!.*\\s$)[\\S\\s]+(?<!\\s)$","type":"string","description":"Additional comment for the item"},"requireValue":{"type":"boolean","description":"Whether this item requires a value","default":false},"tags":{"maxItems":1,"minItems":0,"type":"array","description":"Tags to categorize the item","items":{"maxLength":80,"minLength":1,"pattern":"^\\S[^\\n]*\\S$","type":"string"}}}}}},"additionalProperties":false,"description":"AI-generated inspection template"},"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"},"Defect":{"title":"Defect","required":["inspectable","status"],"type":"object","properties":{"severity":{"$ref":"#/components/schemas/DefectSeverity"},"attachments":{"maxItems":100,"minItems":1,"uniqueItems":true,"type":"array","description":"Attachments in the defect","items":{"type":"object","properties":{"linkedAt":{"maxLength":24,"minLength":24,"type":"string","description":"Link creation time as UTC in RFC 3339-ISO8601 internet profile","format":"date-time","readOnly":true},"attachmentId":{"$ref":"#/components/schemas/Identifier"}},"additionalProperties":false,"description":"Attachment related to the defect"}},"status":{"$ref":"#/components/schemas/DefectStatus"},"inspectable":{"$ref":"#/components/schemas/Inspectable"},"reportResults":{"maxItems":200,"minItems":0,"uniqueItems":true,"type":"array","description":"Report items related to the defect","readOnly":true,"items":{"type":"object","properties":{"reportResultId":{"$ref":"#/components/schemas/Identifier"},"templateItemId":{"$ref":"#/components/schemas/Identifier"},"reportId":{"$ref":"#/components/schemas/Identifier"},"templateId":{"$ref":"#/components/schemas/Identifier"}},"additionalProperties":false,"description":"Report items related to the defect"}},"defectId":{"maxLength":120,"minLength":1,"pattern":"^[A-Za-z0-9-]{1,120}$","type":"string","description":"Unique identifier of a defect.","readOnly":true},"etag":{"$ref":"#/components/schemas/ETag"},"comment":{"maxLength":2000,"minLength":0,"pattern":"^[^\\n]*$","type":"string","description":"Notes about the defect"},"links":{"maxItems":100,"minItems":0,"uniqueItems":true,"type":"array","description":"Related resources","readOnly":true,"items":{"$ref":"#/components/schemas/Link"}},"statusHistory":{"maxItems":100,"minItems":1,"uniqueItems":true,"type":"array","description":"Historical statuses of the defect","readOnly":true,"items":{"type":"object","properties":{"status":{"$ref":"#/components/schemas/DefectStatus"},"signatureAttachmentId":{"$ref":"#/components/schemas/Identifier"}},"additionalProperties":false,"description":"Defect status change information"}}},"additionalProperties":false,"description":"Defect details of a vehicle or other asset"},"InsightsCategory":{"type":"string","description":"Represents the category of vehicle insights to retrieve. Allowed values:\n- ACTIVE: Vehicles that are currently active.\n- INSPECTED: Vehicles that have inspections for all their active days.\n- NO_INSPECTION: Vehicles that have no inspections during any of their active days.\n- PARTIAL: Vehicles that have inspections on some, but not all, of their active days.\n","enum":["ACTIVE","INSPECTED","NO_INSPECTION","PARTIAL"]},"SetupPromptRequest":{"required":["promptText","promptType"],"type":"object","properties":{"promptType":{"type":"string","description":"Type of prompt input for AI template generation","enum":["TEXT","IMAGE"]},"modelId":{"maxLength":255,"minLength":1,"pattern":"^[a-zA-Z0-9.\\-:]+$","type":"string","description":"Optional ID of the Bedrock model to use (e.g., \"anthropic.claude-3-sonnet-20240229-v1:0\")","example":"anthropic.claude-3-sonnet-20240229-v1:0"},"promptText":{"maxLength":10000000,"minLength":1,"pattern":"^\\S[^\\n]+\\S$","type":"string","description":"The input for AI template generation:\n- For `promptType: TEXT` - Plain text description of the inspection template\n- For `promptType: IMAGE` - Base64-encoded image data (JPEG or PNG) of an existing inspection form\n"},"inferenceParameters":{"type":"object","additionalProperties":true,"description":"Optional dictionary to hold model-specific inference parameters (e.g., \"temperature\", \"max_tokens\", \"top_p\")","example":{"max_tokens":2000,"temperature":0.7,"top_p":0.9}}}},"InspectableId":{"maxLength":120,"minLength":1,"pattern":"^[A-Za-z0-9-]{1,120}$","type":"string","description":"Unique ID for an inspectable, i.e. asset/vehicle (asset ID/vehicle ID)."},"ReportType":{"type":"string","description":"Type of the inspection report.","enum":["PRE_TRIP","POST_TRIP"]},"AnalyticsTraceEvent":{"title":"Analytics trace event","required":["name","timestamp"],"type":"object","properties":{"name":{"maxLength":20,"minLength":18,"pattern":"^(inspection\\.started|inspection\\.submitted)$","type":"string","description":"Type of event related to the originating occurrence"},"traceId":{"maxLength":32,"minLength":32,"pattern":"^[a-f0-9]{32}$","type":"string","description":"Unique identifier for a distributed trace the event is part of","readOnly":true},"analyticsEventId":{"maxLength":120,"minLength":1,"pattern":"^[A-Za-z0-9-]{1,120}$","type":"string","description":"Unique identifier of an analytics event.","readOnly":true},"timestamp":{"maxLength":24,"minLength":24,"type":"string","description":"Time when the event occurred in RFC 3339-ISO8601 internet profile","format":"date-time"}},"additionalProperties":false,"description":"Named occurrence at an instant in time. It provides additional specifics about the occurrence.\nExamples of Events might include things like uncaught exceptions, button clicks, user logout, network connection severed, etc.\n"},"PrivacyExtractContinuationToken":{"title":"PrivacyExtractContinuationToken","maxLength":200,"minLength":1,"pattern":"^[.+\\/=A-Za-z0-9]+$","type":"string","description":"Identifies a bookmark for the next page of privacy extract results."},"AttachmentType":{"type":"string","description":"Type of attachment, example Signature, Comment, Photo","enum":["SIGNATURE","COMMENT","PHOTO"]},"DefectStatus":{"type":"string","description":"Type of the defect.","enum":["PENDING","FIXED","CERTIFIED"]},"PrivacySubjectId":{"title":"Privacy subject's ID","type":"object","properties":{"servicingAuthorType":{"maxLength":120,"minLength":1,"pattern":"^manager$","type":"string","description":"The type of the author within servicing domain"},"servicingAuthorName":{"maxLength":120,"minLength":1,"pattern":"^[^\\n]+$","type":"string","description":"The name of the author within servicing domain"},"servicingAuthorId":{"maximum":2147483647,"minimum":1000000,"type":"integer","description":"The ID of the author within servicing domain","format":"int32"}},"additionalProperties":false,"description":"Identifier(s) of the subject"},"AttachmentSearch":{"title":"AttachmentSearch","required":["conditions","fields"],"type":"object","properties":{"conditions":{"maxItems":100,"minItems":1,"type":"array","description":"Group of conditions to filter by the resource representation.","items":{"required":["field","operator","values"],"type":"object","properties":{"operator":{"type":"string","description":"Operator to use to compare between property values and a defined set of values.","enum":["IN"]},"field":{"maxLength":120,"minLength":1,"pattern":"^(attachmentId)$","type":"string","description":"Name of the property to be evaluated."},"values":{"maxItems":100,"minItems":1,"type":"array","description":"Values to evaluate.","items":{"maxLength":120,"minLength":1,"pattern":"^[^\\n]*$","type":"string","description":"Value to evaluate."}}}}},"fields":{"maxItems":8,"minItems":1,"type":"array","description":"Resource properties to return as resource representations. Returns only provided properties of the resource representation.","items":{"maxLength":120,"minLength":1,"pattern":"^(attachmentId|name|attachmentType|createdAt|author|comment|links|data)$","type":"string","description":"Field or property name to be returned in the resource representation."}}},"additionalProperties":false,"description":"Schema for searching attachments based on attachment IDs."},"InspectableType":{"type":"string","description":"Type of an inspectable asset.\n  - VEHICLE when Vehicle is inspected\n  - POWERED_ASSET when assets that have a power source is inspected\n  - NON_POWERED_ASSET when assets that do not have a power source is inspected\n","enum":["VEHICLE","POWERED_ASSET","NON_POWERED_ASSET"]},"Report":{"title":"Report","required":["inspectable","inspectionType","operator","reportType","results","submittedAt","templateId"],"type":"object","properties":{"submittedAt":{"maxLength":24,"minLength":24,"type":"string","description":"Report submitted time as UTC in RFC 3339-ISO8601 internet profile","format":"date-time"},"templateId":{"$ref":"#/components/schemas/Identifier"},"inspectable":{"$ref":"#/components/schemas/Inspectable"},"relatedDefectsStatus":{"allOf":[{"$ref":"#/components/schemas/InspectionStatus"},{"maxLength":120,"minLength":1,"pattern":"^[^\\n]+$","type":"string","readOnly":true}]},"analyticsEvents":{"maxItems":100,"minItems":0,"type":"array","description":"Analytics events related to the report","items":{"$ref":"#/components/schemas/AnalyticsTraceEvent"}},"reportType":{"$ref":"#/components/schemas/ReportType"},"reportId":{"maxLength":120,"minLength":1,"pattern":"^[A-Za-z0-9-]{1,120}$","type":"string","description":"Unique identifier for a report.","readOnly":true},"results":{"maxItems":100,"minItems":0,"uniqueItems":true,"type":"array","description":"Outcomes of inspection items","items":{"$ref":"#/components/schemas/ReportItemResult"}},"defects":{"maxItems":100,"minItems":0,"uniqueItems":true,"type":"array","description":"Defects in the report outside of *results*","items":{"type":"object","properties":{"linkedAt":{"maxLength":24,"minLength":24,"type":"string","description":"Link creation time as UTC in RFC 3339-ISO8601 internet profile","format":"date-time","readOnly":true},"defectId":{"$ref":"#/components/schemas/Identifier"}},"additionalProperties":false,"description":"Defects related to the report outside of *results*"}},"attachments":{"maxItems":100,"minItems":0,"uniqueItems":true,"type":"array","description":"Attachments in the report","items":{"oneOf":[{"allOf":[{"$ref":"#/components/schemas/Attachment"},{"type":"object","properties":{"linkedAt":{"maxLength":24,"minLength":24,"type":"string","description":"Link creation time as UTC in RFC 3339-ISO8601 internet profile","format":"date-time","readOnly":true}},"additionalProperties":true,"description":"Attachment related to the report","readOnly":true}]},{"type":"object","properties":{"linkedAt":{"maxLength":24,"minLength":24,"type":"string","description":"Link creation time as UTC in RFC 3339-ISO8601 internet profile","format":"date-time","readOnly":true},"attachmentId":{"$ref":"#/components/schemas/Identifier"}},"additionalProperties":true,"description":"Attachment related to the report"}]}},"comment":{"maxLength":2000,"minLength":0,"pattern":"^[^\\n]*$","type":"string","description":"Notes about the report","nullable":true},"operator":{"$ref":"#/components/schemas/Operator"},"links":{"maxItems":100,"minItems":0,"uniqueItems":true,"type":"array","description":"Related resources","readOnly":true,"items":{"$ref":"#/components/schemas/Link"}},"inspectionType":{"$ref":"#/components/schemas/InspectionType"}},"additionalProperties":false,"description":"Inspection details of a vehicle or other asset"},"ReportItemResult":{"title":"Report Item Result","required":["resultType","templateItemId"],"type":"object","properties":{"templateItemId":{"$ref":"#/components/schemas/Identifier"},"attachments":{"maxItems":1,"minItems":0,"uniqueItems":true,"type":"array","description":"Attachments for the report item result","items":{"type":"object","properties":{"attachmentId":{"$ref":"#/components/schemas/Identifier"}},"description":"Attachment related to the report item result"}},"resultType":{"type":"string","description":"Result of the Report Item.","enum":["OK","DEFECT"]},"resultId":{"maxLength":120,"minLength":1,"pattern":"^[A-Za-z0-9-]{1,120}$","type":"string","description":"Unique identifier of a report which the Item belongs to.","readOnly":true},"resultValue":{"maxLength":256,"minLength":0,"pattern":"^[^\\n]*$","type":"string","description":"Result outcome, depends on the Report Item type. Not applicable to CHECK items."},"defects":{"maxItems":100,"minItems":0,"uniqueItems":true,"type":"array","description":"Defects raised for a Report Item","items":{"type":"object","properties":{"linkedAt":{"maxLength":24,"minLength":24,"type":"string","description":"Link creation time as UTC in RFC 3339-ISO8601 internet profile","format":"date-time","readOnly":true},"defectId":{"$ref":"#/components/schemas/Identifier"}},"additionalProperties":false,"description":"Defect related to the report item"}}},"additionalProperties":false,"description":"Template Item result within a given report."},"ItemsSelectionType":{"type":"string","description":"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.\n\nTypes of template:\n  - `SELECT_DEFECTS_ONLY` Requires driver to selects only the defective inspection items from the user interface during the creation of an inspection report,\n  - `SELECT_ALL_ITEMS` Requires driver to check and selects all inspection items from the user interface during the creation of an inspection report\n","enum":["SELECT_DEFECTS_ONLY","SELECT_ALL_ITEMS"]},"DefectSearch":{"title":"DefectSearch","required":["conditions","fields"],"type":"object","properties":{"conditions":{"maxItems":100,"minItems":1,"type":"array","description":"Group of conditions to filter by the resource representation.","items":{"required":["field","operator","values"],"type":"object","properties":{"operator":{"type":"string","description":"Operator to use to compare between property values and a defined set of values.","enum":["IN"]},"field":{"maxLength":120,"minLength":1,"pattern":"^(defectId)$","type":"string","description":"Name of the property to be evaluated."},"values":{"maxItems":100,"minItems":1,"type":"array","description":"Values to evaluate.","items":{"maxLength":120,"minLength":1,"pattern":"^[^\\n]*$","type":"string","description":"Value to evaluate."}}}}},"fields":{"maxItems":8,"minItems":1,"type":"array","description":"Resource properties to return as resource representations. Returns only provided properties of the resource representation.","items":{"maxLength":120,"minLength":1,"pattern":"^(defectId|status|severity)$","type":"string","description":"Field or property name to be returned in the resource representation."}}},"additionalProperties":false,"description":"Schema for searching defects based on defect IDs."},"PrivacySubjectType":{"title":"PrivacySubjectType","maximum":9,"minimum":1,"type":"integer","description":"Type of the subject","format":"int32"},"PrivacySubjectExtractRequest":{"title":"PrivacySubjectExtractRequest","required":["subjectId"],"type":"object","properties":{"subjectId":{"$ref":"#/components/schemas/PrivacySubjectId"},"culture":{"maxLength":5,"minLength":2,"pattern":"^[a-zA-Z]{2}(-[A-Z]{2})?$","type":"string","description":"Culture code (eg. en-US). The format is two letter ISO 639-1 language code optionally followed by a dash and a two letter ISO 3166 alpha-2 country code."},"continuationToken":{"$ref":"#/components/schemas/PrivacyExtractContinuationToken"},"interval":{"type":"object","properties":{"start":{"maxLength":24,"minLength":24,"type":"string","description":"Start time of the account as UTC","format":"date-time"},"end":{"maxLength":24,"minLength":24,"type":"string","description":"Submitted time as UTC","format":"date-time"}},"additionalProperties":false,"description":"Time interval for the extract"}},"additionalProperties":false,"description":"Privacy subject extract request"},"PrivacySubjectMetadata":{"title":"PrivacySubjectMetadata","type":"object","properties":{"value":{"maxLength":120,"minLength":0,"pattern":"^[^\\n]*$","type":"string","description":"Localized value of field.","readOnly":true},"label":{"maxLength":120,"minLength":0,"pattern":"^[^\\n]*$","type":"string","description":"Human readable name of field.","readOnly":true}},"additionalProperties":false,"description":"Identifying traits"},"ProblemJson":{"title":"ProblemJson","type":"object","properties":{"type":{"maxLength":2000,"minLength":0,"pattern":"^[^\\n]*$","type":"string","description":"A URI reference that identifies the problem type.","format":"uri"},"detail":{"maxLength":2000,"minLength":0,"pattern":"^[^\\n]*$","type":"string","description":"A human-readable explanation specific to this occurrence of the problem."},"status":{"maximum":599,"minimum":300,"type":"integer","description":"The HTTP status code generated by the origin server for this occurrence of the problem.","format":"int32"},"errors":{"maxItems":120,"minItems":1,"uniqueItems":true,"type":"array","description":"An extension that contains a list of individual error occurrences found, with details and a pointer to the location of each. Use this extension to convey more than one errors of the same type.","items":{"type":"object","properties":{"debugId":{"maxLength":120,"minLength":0,"pattern":"^[^\\n]*$","type":"string","description":"A unique error identifier string generated on the service-side and logged for correlation purposes."},"pointer":{"maxLength":120,"minLength":0,"pattern":"^(\\/[^\\n]+)*$","type":"string","description":"A pointer to locate the problem within the request's content using a [JSON Pointer](https://www.rfc-editor.org/info/rfc6901). This extension is only applicable in case of 4xx range of errors."},"detail":{"maxLength":2000,"minLength":0,"pattern":"^[^\\n]*$","type":"string","description":"A human-readable explanation specific to this occurrence of the problem."}},"additionalProperties":false}},"instance":{"maxLength":2000,"minLength":0,"pattern":"^[^\\n]*$","type":"string","description":"A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.","format":"uri"},"debugId":{"maxLength":120,"minLength":0,"pattern":"^[^\\n]*$","type":"string","description":"A unique error identifier string generated on the service-side and logged for correlation purposes."},"pointer":{"maxLength":120,"minLength":0,"pattern":"^(\\/[^\\n]+)*$","type":"string","description":"A pointer to locate the problem within the request's content using a [JSON Pointer](https://www.rfc-editor.org/info/rfc6901). This extension is only applicable in case of 4xx range of errors."},"title":{"maxLength":2000,"minLength":0,"pattern":"^[^\\n]*$","type":"string","description":"A short, human-readable summary of the problem type."}},"additionalProperties":false,"description":"JSON Schema for HTTP Problems as defined by RFC 9457"},"ETag":{"maxLength":120,"minLength":1,"pattern":"^[A-Za-z0-9-]+$","type":"string","description":"ETag as described in [RFC 9110](https://www.rfc-editor.org/rfc/rfc9110#name-etag)","readOnly":true},"InsightsVehicleInspectionHistoryResponse":{"title":"InsightsVehicleInspectionHistoryResponse","type":"object","properties":{"links":{"maxItems":120,"minItems":0,"uniqueItems":true,"type":"array","description":"Related resources, pagination information","items":{"$ref":"#/components/schemas/Link"}},"items":{"maxItems":100,"minItems":0,"uniqueItems":true,"type":"array","description":"A list of drill down vehicle inspection history.","items":{"type":"object","properties":{"operators":{"maxItems":100,"minItems":1,"type":"array","description":"Name of the driver(s)","items":{"maxLength":120,"minLength":1,"type":"string","description":"Name of a driver.","readOnly":true}},"report":{"type":"object","properties":{"template":{"type":"object","properties":{"name":{"maxLength":60,"minLength":3,"pattern":"^\\S[^\\n]+\\S$","type":"string","description":"Unique name of the template used for inspection."}},"additionalProperties":false,"description":"Template information used for this inspection report"},"reportId":{"$ref":"#/components/schemas/Identifier"},"inspectable":{"$ref":"#/components/schemas/Inspectable"},"reportType":{"$ref":"#/components/schemas/ReportType"},"inspectionType":{"$ref":"#/components/schemas/InspectionType"},"analyticsEvents":{"maxItems":100,"minItems":0,"type":"array","description":"Analytics events related to the report","items":{"$ref":"#/components/schemas/AnalyticsTraceEvent"}},"relatedDefectsStatus":{"maxLength":120,"minLength":1,"pattern":"^[^\\n]+$","type":"string","description":"Status of all related critical defects for this inspection report","readOnly":true}},"additionalProperties":false,"description":"Inspection report details"},"activityDate":{"maxLength":10,"minLength":10,"type":"string","description":"Date of the vehicle activity","format":"date"}},"additionalProperties":false,"description":"Individual vehicle inspection history item"}}},"additionalProperties":false,"description":"Response containing a list of vehicle inspection history items"},"InsightsSummaryResponse":{"title":"InsightsSummaryResponse","type":"object","properties":{"vehicleCountNoInspection":{"maximum":9999999,"minimum":0,"type":"integer","description":"Active vehicle count with no daily inspection for summary tile","format":"int32"},"vehicleActiveCount":{"maximum":9999999,"minimum":0,"type":"integer","description":"Active vehicle count for summary tile","format":"int32"},"yesterdayProcessed":{"type":"boolean","description":"Indicates if the insights for yesterday are processed"},"vehicleCountWithInspection":{"maximum":9999999,"minimum":0,"type":"integer","description":"Active vehicle count with daily inspection for summary tile","format":"int32"},"vehicleCountSomeInspections":{"maximum":9999999,"minimum":0,"type":"integer","description":"Active vehicle count with some daily inspection for summary tile","format":"int32"}},"description":"The response of Insights Summary"},"PrivacySubjectExtractResponse":{"title":"PrivacySubjectExtractResponse","type":"object","properties":{"additionalSources":{"maxItems":100,"minItems":0,"uniqueItems":true,"type":"array","description":"List of additional sources","readOnly":true,"items":{"type":"object","properties":{"link":{"type":"object","properties":{"text":{"maxLength":120,"minLength":1,"pattern":"^[^\\n]+$","type":"string","description":"Text of the link","readOnly":true},"url":{"maxLength":2000,"minLength":1,"pattern":"^[^\\n]+$","type":"string","description":"Url of the link","readOnly":true}},"additionalProperties":false,"description":"Link of additional source"},"title":{"maxLength":120,"minLength":1,"pattern":"^[^\\n]+$","type":"string","description":"Title of additional source","readOnly":true},"message":{"maxLength":2000,"minLength":1,"pattern":"^[^\\n]+$","type":"string","description":"Message of additional source","readOnly":true}},"additionalProperties":false,"description":"Additional sources"}},"continuationToken":{"$ref":"#/components/schemas/PrivacyExtractContinuationToken"},"results":{"maxItems":100,"minItems":0,"uniqueItems":true,"type":"array","description":"A list of privacy subject extract results","readOnly":true,"items":{"$ref":"#/components/schemas/PrivacySubjectId"}}},"additionalProperties":false,"description":"The response of privacy subject extract"},"PrivacySubjectInfo":{"title":"PrivacySubjectInfo","type":"object","properties":{"subjectLabel":{"$ref":"#/components/schemas/PrivacySubjectLabel"},"subjectId":{"$ref":"#/components/schemas/PrivacySubjectId"},"subjectType":{"$ref":"#/components/schemas/PrivacySubjectType"}},"additionalProperties":false,"description":"The subject details"},"ReportExport":{"title":"Export a report","required":["distanceUnits","locale","timeZone"],"type":"object","properties":{"distanceUnits":{"type":"string","description":"The distance unit to represent the odometer reading","enum":["MILES","KILOMETERS"]},"timeZone":{"maxLength":100,"minLength":1,"pattern":"^[A-Za-z0-9 )(+_.-]+$","type":"string","description":"The timezone to represent the local time. The value should be TZID"},"locale":{"maxLength":5,"minLength":5,"pattern":"^(de-DE|de-AT|de-CH|en-AU|en-CA|en-IE|en-NZ|en-GB|en-US|es-CL|es-ES|es-MX|fr-BE|fr-CA|fr-FR|fr-CH|it-IT|nl-BE|nl-NL|pl-PL|pt-PT)$","type":"string","description":"The desired IETF BCP 47 standard language code for an export"}},"additionalProperties":false,"description":"Represents export settings for a report"},"InsightsCategoryDetailsResponse":{"title":"InsightsCategoryDetailsResponse","type":"object","properties":{"inspectableRegistrationNumber":{"maxLength":120,"minLength":0,"pattern":"^[^\\n]*$","type":"string","description":"Registration number of the asset","readOnly":true},"inspectableName":{"maxLength":120,"minLength":1,"pattern":"^[^\\n]+$","type":"string","description":"Insights category inspectable name","readOnly":true},"inspectableId":{"$ref":"#/components/schemas/InspectableId"},"inspectedDays":{"maximum":9999999,"minimum":0,"type":"integer","description":"Inspected days of the vehicle","format":"int32"},"lastInspected":{"maxLength":24,"minLength":24,"type":"string","description":"last inspected day of the vehicle","format":"date-time"},"inspectionStatus":{"allOf":[{"$ref":"#/components/schemas/InspectionStatus"},{"maxLength":120,"minLength":1,"pattern":"^[^\\n]+$","type":"string","readOnly":true}]},"activeDays":{"maximum":9999999,"minimum":0,"type":"integer","description":"Active days of the vehicle","format":"int32"}},"description":"The response of Insights Category Details"},"Link":{"title":"Link","required":["href","rel"],"type":"object","properties":{"rel":{"maxLength":10,"minLength":4,"pattern":"^(appendix|next|prev|self)$","type":"string","description":"Meaning of the values [described at IANA](https://www.iana.org/assignments/link-relations/link-relations.xhtml)\n  - *appendix* - refers to documents serving as an appendix to the current resource\n  - *next* - context is a part of a series, and that the next in the series is the link target\n  - *prev* - context is a part of a series, and that the previous in the series is the link target\n  - *self* - URI of a resource or current page of the collection\n"},"method":{"type":"string","description":"HTTP method to interact with linked resource","enum":["GET","PUT"]},"title":{"maxLength":120,"minLength":1,"pattern":"^[^\\n]+$","type":"string","description":"Relation type with the target resource as human-readable text"},"href":{"maxLength":2000,"minLength":1,"pattern":"^[^\\n]+$","type":"string","description":"URL of linked resource","format":"uri-reference"}},"additionalProperties":false,"description":"Reference to another resource"}},"responses":{"BadRequest":{"description":"Bad Request","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemJson"}}}},"NoContent":{"description":"No Content"},"TooManyRequests":{"description":"Too Many Requests","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemJson"}}}},"Forbidden":{"description":"Forbidden","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemJson"}}}},"UnsupportedMediaType":{"description":"Unsupported Media Type","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemJson"}}}},"Unauthorized":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemJson"}}}},"Accepted":{"description":"Accepted","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"maxLength":120,"minLength":0,"pattern":"^[^\\n]*$","type":"string","description":"Optional message to describe result of the operation."}}}}}},"UnprocessableContent":{"description":"Unprocessable Content","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemJson"}}}},"InternalServerError":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemJson"}}}},"NotFound":{"description":"Not Found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemJson"}}}}},"parameters":{"IfMatch":{"name":"If-Match","in":"header","description":"This header is use in combination with an \"ETag\" as a precondition for concurrency control.","required":true,"schema":{"maxLength":120,"minLength":1,"pattern":"^\"[a-z0-9-]+\"$","type":"string"}},"IdempotencyKey":{"name":"Idempotency-Key","in":"header","description":"Carries an idempotency key in order to make non-idempotent HTTP methods such as POST or PATCH fault-tolerant. Must include quotes.","required":true,"schema":{"maxLength":120,"minLength":1,"pattern":"^\"[a-z0-9-]+\"$","type":"string"}},"TraceParent":{"name":"traceparent","in":"header","description":"Describes the position of the incoming request in its trace graph in a portable, fixed-length format.\nEvery tracing tool downstream MUST properly set traceparent even when it only relies on tracing service-specific information in tracestate.\n\nTrace ID part of the traceparent is used to correlate multiple requests within the same distributed trace, including recorded analytics events.\n","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[a-f0-9]{32}-[a-f0-9]{16}-[a-f0-9]{2}$","type":"string"}},"QueryPageToken":{"name":"page_token","in":"query","description":"Identifies a bookmark for the next page of results.","required":false,"schema":{"maxLength":200,"minLength":1,"pattern":"^[.+\\/=A-Za-z0-9]+$","type":"string"}}},"securitySchemes":{"VerizonConnect.Api":{"type":"apiKey","name":"Authorization","in":"header"}}},"tags":[{"name":"Fleet Inspections API","description":"Operations for retrieving inspection templates, reports, defects and attachments, and for updating defects and creating attachments."}],"servers":[{"url":"https://api.us.vzconnect.com"}]}
```
