Vehicle Admin API
  1. Vehicles
Vehicle Admin API
  • Auth
    • Sign In
      POST
  • Vehicles
    • Index
      GET
    • Create
      POST
    • Show
      GET
    • Update
      PATCH
  • Maintenance Reports
    • Index
      GET
    • Create
      POST
    • Show
      GET
    • Update
      PATCH
  • Service Orders
    • Index
      GET
  1. Vehicles

Update

Developing
PATCH
/vehicles/{id}
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PATCH '/vehicles/' \
--header 'Authorization: {{token}}' \
--header 'Content-Type: application/json' \
--data-raw '{
    "vehicle": {
        "license_plate": "{{$vehicle.vrm}}",
        "make": "{{$vehicle.manufacturer}}",
        "model": "{{$vehicle.model}}",
        "year": 2000,
        "status": "disponible"
    }
}'
Response Response Example
200 - Success
{
    "id": 1,
    "license_plate": "ABC1234",
    "make": "Kia",
    "model": "Corolla",
    "status": "en_taller",
    "year": 2020
}

Request

Path Params
id
string 
required
Header Params
Authorization
string 
required
Example:
{{token}}
Body Params application/json
vehicle
object 
required
license_plate
string 
optional
make
string 
optional
model
string 
optional
year
integer 
optional
status
string 
optional
Examples

Responses

🟢200Success
application/json
Body
id
integer 
required
license_plate
string 
required
make
string 
required
model
string 
required
status
string 
required
year
integer 
required
🟠401Unauthorized
🟠422Parameter Error
🟠404Record Not Found
🟠403Forbidden
Modified at 2025-06-13 21:24:43
Previous
Show
Next
Index
Built with