PATCH api/vehicules/{IDVehicule}/options/{IDVehiculeOption}

Modifie une option du véhicule (table MATEQUIP EstOption = true).
            Seul le rank est modifiable actuellement. Si le rank est modifié les ranks des autres options du véhicule sont ajustés en conséquence.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
IDVehicule

integer

Required

IDVehiculeOption

integer

Required

Body Parameters

VehiculeOption
NameDescriptionTypeAdditional information
IDVehiculeOption

IDMATEQUIP

integer

None.

Descr

string

None.

Code

string

None.

PrixVenteHT

decimal number

None.

PrixVenteTTC

decimal number

None.

PrixAchat

decimal number

None.

Rank

Rang, pour l'ordre d'affichage dans la publication par exemple. Démarre à 1.

integer

None.

IDOptionCat

integer

None.

EstOptionManuelle

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "IDVehiculeOption": 1,
  "Descr": "sample string 1",
  "Code": "sample string 2",
  "PrixVenteHT": 1.1,
  "PrixVenteTTC": 1.1,
  "PrixAchat": 1.1,
  "Rank": 1,
  "IDOptionCat": 1,
  "EstOptionManuelle": true
}

application/xml, text/xml

Sample:
<VehiculeOption xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SelectUp.APIeSellerREST.Models">
  <Code>sample string 2</Code>
  <Descr>sample string 1</Descr>
  <EstOptionManuelle>true</EstOptionManuelle>
  <IDOptionCat>1</IDOptionCat>
  <IDVehiculeOption>1</IDVehiculeOption>
  <PrixAchat>1.1</PrixAchat>
  <PrixVenteHT>1.1</PrixVenteHT>
  <PrixVenteTTC>1.1</PrixVenteTTC>
  <Rank>1</Rank>
</VehiculeOption>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.