POST api/Vehicle/AddVehicles

Request Information

URI Parameters

None.

Body Parameters

VehiclesAddModel
NameDescriptionTypeAdditional information
UserId

globally unique identifier

None.

Brand

string

None.

Model

string

None.

PlateNumber

string

None.

Color

string

None.

Year

integer

None.

BatteryCapacity

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "UserId": "caa702c1-2ac0-4000-8190-7bbfc8d6eae1",
  "Brand": "sample string 1",
  "Model": "sample string 2",
  "PlateNumber": "sample string 3",
  "Color": "sample string 4",
  "Year": 5,
  "BatteryCapacity": 6.0
}

text/html, multipart/form-data

Sample:
{"UserId":"caa702c1-2ac0-4000-8190-7bbfc8d6eae1","Brand":"sample string 1","Model":"sample string 2","PlateNumber":"sample string 3","Color":"sample string 4","Year":5,"BatteryCapacity":6.0}

application/xml, text/xml

Sample:
<VehiclesAddModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/VarCharge.MobilApi.Models.Vehicles">
  <BatteryCapacity>6</BatteryCapacity>
  <Brand>sample string 1</Brand>
  <Color>sample string 4</Color>
  <Model>sample string 2</Model>
  <PlateNumber>sample string 3</PlateNumber>
  <UserId>caa702c1-2ac0-4000-8190-7bbfc8d6eae1</UserId>
  <Year>5</Year>
</VehiclesAddModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Collection of Object

None.

Response Formats

application/json, text/json, text/html, multipart/form-data

Sample:

Sample not available.