Update Truck by ID

Updates the truck in the inventory with forma data.

Swagger Documentation

Method PUT
Endpoint /truck/{truckId}
Base Path azvehicles.com/azstc2018api
Consumes application/json
Produces
  • application/json
  • application/xml
Request Body
Path Parameter Data Type Required/Optional Valid Values Description
truckId
  • integer
  • int64
Required 8-digit numeric The truck ID provided by AZ Vehicles.
requestBody:
content:
application/x-www-form-urlencoded:
schema:
type: object
properties:
make:
description: Updated make of the truck.
type: string
model:
description: Updated model of the truck.
type: string
year:
description: Updated year of the truck.
type: string
color:
description: Updated color of the truck.
type: string
Response Payload Parameters
Request JSON Data Element Data Type Required/Optional Valid Values Description
id
  • Type: integer
  • Format: int64
Required 8-digit numeric The system-generated unique ID for the truck.
make
  • enum
  • string
Required
  • Chevrolet
  • Dodge
  • Ford
  • Jeep
  • Plymouth
  • GMC
The make of the truck. For example, Ford, Chevrolet, Dodge, and so on.
model
  • enum
  • string
Required
  • F150
  • Ram
  • Silverado
  • Tundra
The model of the truck. For example, F150, Ram, Silverado, and so on.
year
  • enum
  • string
Required
  • 1964
  • 1965
  • 1966
  • 1967
  • 1968
  • 1969
  • 1970
  • 1971
  • 1972
  • 1973
  • 1974
  • 1975
  • 1976
  • 1977
  • 1978
  • 1979
  • 1980
  • 1981
  • 1982
  • 1983
  • 1984
  • 1985
  • 1986
The year the truck was produced (must be between 1964-1986).
color
  • enum
  • string
Required
  • Black
  • Brown
  • White
  • Silver
  • Gold
  • Red
  • Blue
  • Green
  • Orange
  • Purple
  • Yellow
The primary color of the truck.
Response Status Codes
Code Definition
201 Successful operation. The truck was updated.
405 Invalid input. Please enter a valid ID.