POST staff/vehicle_type/edit

Request Information

URI Parameters

None.

Body Parameters

Request_Vehicle_Type_CU
NameDescriptionTypeAdditional information
id

integer

Required

vehicle_life

string

Required

vehicle_model

string

Required

vehicle_name

string

Required

input_price

decimal number

Required

retail_price

decimal number

Required

wholesale_price

decimal number

Required

countryside_price

decimal number

Required

city_price

decimal number

Required

id_unit

integer

Required

unit_name

string

Required

token

string

Required

secret_key

string

Required

id_staff_action

integer

Required

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "vehicle_life": "sample string 2",
  "vehicle_model": "sample string 3",
  "vehicle_name": "sample string 4",
  "input_price": 5.0,
  "retail_price": 6.0,
  "wholesale_price": 7.0,
  "countryside_price": 8.0,
  "city_price": 9.0,
  "id_unit": 10,
  "unit_name": "sample string 11",
  "token": "sample string 12",
  "secret_key": "sample string 13",
  "id_staff_action": 14
}

application/xml, text/xml

Sample:
<Request_Vehicle_Type_CU xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/be_motosoft.Areas.Code.Directory.Models.Dictionary.Request">
  <id_staff_action xmlns="http://schemas.datacontract.org/2004/07/be_motosoft.Areas.Code">14</id_staff_action>
  <secret_key xmlns="http://schemas.datacontract.org/2004/07/be_motosoft.Areas.Code">sample string 13</secret_key>
  <token xmlns="http://schemas.datacontract.org/2004/07/be_motosoft.Areas.Code">sample string 12</token>
  <city_price>9</city_price>
  <countryside_price>8</countryside_price>
  <id>1</id>
  <id_unit>10</id_unit>
  <input_price>5</input_price>
  <retail_price>6</retail_price>
  <unit_name>sample string 11</unit_name>
  <vehicle_life>sample string 2</vehicle_life>
  <vehicle_model>sample string 3</vehicle_model>
  <vehicle_name>sample string 4</vehicle_name>
  <wholesale_price>7</wholesale_price>
</Request_Vehicle_Type_CU>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'Request_Vehicle_Type_CU'.

Response Information

Resource Description

Result
NameDescriptionTypeAdditional information
status

integer

None.

error_code

string

None.

content

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "status": 1,
  "error_code": "sample string 2",
  "content": {}
}

application/xml, text/xml

Sample:
<Result xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/be_motosoft.Areas.Code">
  <content />
  <error_code>sample string 2</error_code>
  <status>1</status>
</Result>