Vehicles
Get a vehicle defect
Changed onRetrieves full detail of a single vehicle defect, including resolution history and attachment references (required scope vehicles:read)
get/v1/vehicles/defects/{defectId}
Request
- Base URLhttps://api.bigchange.com
- URLhttps://api.bigchange.com/v1/vehicles/defects/{defectId}
- AuthHTTP bearer
Path parameters
defectIdinteger required
Example:5514123
The unique identifier of the defect to retrieve
Headers
Customer-Idinteger required
The customer identifier
Response
OK
Example response
{
"defectId": 5514123,
"vehicleId": 1211,
"vehicleGroupId": 4521,
"reportedByResourceId": 1211,
"severity": "High",
"category": "Tyres",
"description": "Front nearside tyre worn below legal limit",
"resolutionNotes": "Tyre replaced",
"occurredAt": "2022-11-29T16:50:16.0000000+00:00",
"resolvedAt": "2022-11-29T16:50:16.0000000+00:00",
"createdAt": "2022-11-29T16:50:16.0000000+00:00",
"updatedAt": "2022-11-29T16:50:16.0000000+00:00",
"attachments": [
{
"attachmentId": 5514123,
"fileName": "defect-photo.jpg",
"url": "https://api.bigchange.com/v1/attachments/5514123"
}
]
}Changes
- info
endpoint added
- info