Update vehicle
PUT {{base_url}}/vehicles/uuid
Description
This API endpoint is used to update information related to a specific vehicle identified by its UUID.
URL Parameters:
| Name | Description |
|---|---|
| uuid | (required, path) A unique identifier for the vehicle. |
Request Headers:
| Name | Description |
|---|---|
| tenantId | (required, header) The tenant ID is associated with the request. |
| countryCode | (required, header) The country code associated with the request. |
Request Body Schema (JSON):
{
"driverUserId": "string",
"carrierPhoneNumber": "string",
"licensePlate": "string",
"model": "string",
"manufacturer": "string",
"capacity": "string",
"colour": "string",
"year": "string",
"type": "string",
"imageUrl": "string"
}
Request Body Example (XML):
<vehicleUpdate>
<driverUserId>string</driverUserId>
<carrierPhoneNumber>string</carrierPhoneNumber>
<licensePlate>string</licensePlate>
<model>string</model>
<manufacturer>string</manufacturer>
<capacity>string</capacity>
<colour>string</colour>
<year>string</year>
<type>string</type>
<imageUrl>string</imageUrl>
</vehicleUpdate>
Response:
{
"status": "boolean",
"statusCode": "integer",
"message": "string",
"data": {},
"errors": [
{
"message": "string",
"descriptiveMessage": "string"
}
]
}
Response Body Example:
<vehicleUpdateResponse>
<status>true</status>
<statusCode>0</statusCode>
<message>string</message>
<data></data>
<errors>
<error>
<message>string</message>
<descriptiveMessage>string</descriptiveMessage>
</error>
</errors>
</vehicleUpdateResponse>
- 400 Bad Request
- Description: Invalid request.
- 404 Not Found
- Description: Vehicle not found.
Headers
| Content-Type | Value |
|---|---|
| tenantId |
Headers
| Content-Type | Value |
|---|---|
| countryCode |
Query Params
| Param | value |
|---|---|
| uuid | null |
LANGUAGE
CURL REQUEST
curl --request PUT \
--url /vehicles/uuid \
--header 'accept: application/json' \
--header 'content-type: application/json'
RESPONSE
Click Try It! to start a request and see the response here!