Add Motorcycle

Adds a motorcycle to the AZ Vehicles inventory. The motorcycle is then available to all dealers using the APIs.

Swagger Documentation

Method POST
Endpoint /motorcycle
Base Path azvehicles.com/azstc2018api
Consumes application/json
Produces
  • application/json
  • application/xml
Request Body
Parameter Data Type Required/Optional Valid Values Description
make string Required
  • BMW
  • Ducati
  • Harley-Davidson
  • Honda
  • Indian
  • Kawasaki
  • Suzuki
  • Yamaha
The make of the motorcycle. For example, Harley-Davidson, Kawasaki, Yamaha, and so on.
model string Required
  • BMW
  • Ducati
  • Harley-Davidson
  • Honda
  • Indian
  • Kawasaki
  • Suzuki
  • Yamaha
The model of the motorcycle. For example, Low Glider, Low Rider, Strugis, 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 motorcycle was produced (must be between 1964-1986).
color string Required
    • Black
    • Brown
    • White
    • Silver
    • Gold
    • Red
    • Blue
    • Green
    • Orange
    • Purple
  • Yellow
The primary color of the motorcycle.
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 motorcycle.
make
  • enum
  • string
Required
    • BMW
    • Ducati
    • Harley-Davidson
    • Honda
    • Indian
    • Kawasaki
    • Suzuki
  • Yamaha
The make of the motorcycle. For example, Harley-Davidson, Kawasaki, Yamaha, and so on.
model
  • enum
  • string
Required
  • Tundra
  • C Series
  • R Series
  • Badger
  • Bandit
  • Brute Force
  • Eliminator
  • Gold Wing
  • Monster
  • Rebel
  • Roadster
  • Sabre
  • Scrambler
The model of the motorcycle. For example, Low Glider, Low Rider, Strugis, 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 motorcycle 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 motorcycle.
Response Status Codes
Code Definition
201 Successful operation. The motorcycle was added to the collection.
405 Invalid input. Make sure all parameters are included in the request.