POST api/VehicleModel/Update

Request Information

URI Parameters

None.

Body Parameters

VehicleModel
NameDescriptionTypeAdditional information
VehicleModelID

globally unique identifier

None.

Name

string

None.

SeatingCapacity

integer

None.

TankCapacity

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "VehicleModelID": "2c3cf95a-11d7-4442-92f4-9c17db9eebbb",
  "Name": "sample string 2",
  "SeatingCapacity": 3,
  "TankCapacity": 4
}

application/xml, text/xml

Sample:
<VehicleModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FleetrootPartner.Entity">
  <Name>sample string 2</Name>
  <SeatingCapacity>3</SeatingCapacity>
  <TankCapacity>4</TankCapacity>
  <VehicleModelID>2c3cf95a-11d7-4442-92f4-9c17db9eebbb</VehicleModelID>
</VehicleModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Result
NameDescriptionTypeAdditional information
IsValid

boolean

None.

Message

Collection of string

None.

WarningMessage

string

None.

Id

globally unique identifier

None.

Response Formats

application/json, text/json

Sample:
{
  "IsValid": true,
  "Message": [
    "sample string 1",
    "sample string 2"
  ],
  "WarningMessage": "sample string 2",
  "Id": "ff8a8033-06fa-4ea6-84c2-1d4911abdb9f"
}

application/xml, text/xml

Sample:
<Result xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FleetrootPartner.Common">
  <Id>ff8a8033-06fa-4ea6-84c2-1d4911abdb9f</Id>
  <IsValid>true</IsValid>
  <Message xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </Message>
  <WarningMessage>sample string 2</WarningMessage>
</Result>