Update Car

Updates a car in the AZ Vehicles inventory. The updated car is then available to all dealers who are using the APIs.
Swagger Documentation

Method PUT
Endpoint /car
Base Path azvehicles.com/azstc2018api
Consumes application/json
Produces
  • application/json
  • application/xml
Request Body
Parameter Data Type Required/Optional Valid Values Description
id
  • Type: integer
  • Format: int64
Required 8-digit numeric The system-generated unique ID for the car.
make string Required
  • Buick
  • Cadillac
  • Chevrolet
  • Chrysler
  • Dodge
  • Ford
  • Lincoln
  • Jeep
  • Oldsmobile
  • Plymouth
  • Pontiac
The make of the car. For example, Ford, Chevrolet, Dodge, and so on.
model string Required
  • Barracuda
  • Camaro
  • Chevelle
  • Corvette
  • Cutlass
  • El Dorado
  • Falcon
  • Firebird
  • Gran Torino
  • GTO
  • Mustang
  • Nova
  • Roadrunner
The model of the car. For example, Mustang, Camaro, GTO, and so on.
year 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 car was produced (must be 1964-1986).
color string Required
  • Black
  • Brown
  • White
  • Silver
  • Gold
  • Red
  • Blue
  • Green
  • Orange
  • Purple
  • Yellow
The primary color of the car.
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 car.
make
  • enum
  • string
Required
  • Buick
  • Cadillac
  • Chevrolet
  • Chrysler
  • Dodge
  • Ford
  • Lincoln
  • Jeep
  • Oldsmobile
  • Plymouth
  • Pontiac
The make of the car. For example, Ford, Chevrolet, Dodge, and so on.
model
  • enum
  • string
Required
  • Barracuda
  • Camaro
  • Chevelle
  • Corvette
  • Cutlass
  • El Dorado
  • Falcon
  • Firebird
  • Gran Torino
  • GTO
  • Mustang
  • Nova
  • Roadrunner
The model of the car. For example, Mustang, Camaro, GTO, 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 car was produced (must be 1964-1986).
color
  • enum
  • string
Required
  • Black
  • Brown
  • White
  • Silver
  • Gold
  • Red
  • Blue
  • Green
  • Orange
  • Purple
  • Yellow
The primary color of the car.
Response Status Codes
Code Definition
201 Successful operation. The car was updated.
400 Invalid ID passed in the request.
404 The car is not in a collection.
405 Invalid method. Must be the PUT method.