User APIs/Vehicles
Update Vehicle
PATCH
/user/vehicles/:idBearer token required
ADMIN | USERContent-Type:
application/jsonPath Parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Required |
Request Example
JSON
{
"name": "My Truck",
"plateNumber": "DL-01-AB-1234",
"attributes": {
"color": "blue"
}
}Code Examples
curl -X PATCH 'https://<your-domain>:3001/user/vehicles/:id' \
-H 'Authorization: Bearer <token>' \
-H 'Content-Type: application/json' \
-d '{
"name": "My Truck",
"plateNumber": "DL-01-AB-1234",
"attributes": {
"color": "blue"
}
}'