Vehicle damage points
-
DamagePoint
, which is a typekey to theVehicleDamagePoints
typelist and which identifies the location of the damage -
DamageSeverity
, which is a typekey to theDamageSeverity
typelist and which optionally identifies the severity of the damage
Querying for vehicle damage points
Use the following endpoints to query for the damage points on a vehicle incident.
-
GET /claim/v1/claims/{claimId}/vehicle-incidents/{incidentId}/ vehicle-damage-points
-
GET /claim/v1//claims/{claimId}/vehicle-incidents/{incidentId}/ vehicle-damage-points/{vehicleDamagePointId}
For example, the following request retrieves the vehicle damage points for vehicle cc:1010 on claim demo_sample:1.
Command
GET /claim/v1/claims/demo_sample:1/vehicle-incidents/cc:1010/vehicle-damage-points
Response
{
"count": 2,
"data": [
{
"attributes": {
"damagePoint": {
"code": "fr_door",
"name": "Front Right Door"
},
"damageSeverity": {
"code": "moderate",
"name": "Moderate"
},
"id": "cc:SwZ6FuftaXwcyOWRs6kG2"
},
...
},
{
"attributes": {
"damagePoint": {
"code": "f_bumper",
"name": "Front Bumper and Grill"
},
"id": "cc:SRlArWMDZmtKA8TScCZ3x"
},
...
}
],
...
}
Creating vehicle damage points
Use the following endpoint to create a vehicle damage point:
-
POST /claim/v1/claims/{claimId}/vehicle-incidents/{incidentId}/ vehicle-damage-points
The only required field is damagePoint
.
damagePoint
value and the optional
damageSeverity
value.Command
POST /claim/v1/claims/demo_sample:1/vehicle-incidents/cc:1010/vehicle-damage-points
Request
{
"data": {
"attributes": {
"damagePoint": {
"code": "roof"
},
"damageSeverity": {
"code": "minor"
}
}
}
}
PATCHing and DELETEing vehicle damage points
Use the following endpoint to PATCH an existing damage point:
-
PATCH /claim/v1/claims/{claimId}/vehicle-incidents/{incidentId}/ vehicle-damage-points/{vehicleDamagePointId}
For example, the following request modifies the severity of damage point cc:9999 for vehicle cc:1010 on claim demo_sample:1.
Command
PATCH /claim/v1/claims/demo_sample:1/vehicle-incidents/cc:1010/vehicle-damage-points/cc:9999
Request
{
"data": {
"attributes": {
"damageSeverity": {
"code": "severe"
}
}
}
}
Use the following endpoint to DELETE an existing damage point:
-
DELETE /claim/v1/claims/{claimId}/vehicle-incidents/{incidentId}/ vehicle-damage-points/{vehicleDamagePointId}
For example, the following request deletes damage point cc:9999 for vehicle cc:1010 on claim demo_sample:1.
Command
DELETE /claim/v1/claims/demo_sample:1/vehicle-incidents/cc:1010/vehicle-damage-points/cc:9999