POST api/Voiture/EditCarmileage

Request Information

URI Parameters

None.

Body Parameters

EditCarmileageViewModel
NameDescriptionTypeAdditional information
FCompId

integer

None.

FSectionId

integer

None.

FSectionName

string

None.

FKey

integer

None.

FAddOil

decimal number

None.

FCollectionTime

date

None.

FCollectionMileage

integer

None.

FCollectionMileageImage

string

None.

FCollectionOil

decimal number

None.

FCollectionOilImage

string

None.

FOptId

integer

None.

FOptName

string

None.

FOptTime

date

None.

Request Formats

application/json, text/json

Sample:
{
  "FCompId": 1,
  "FSectionId": 1,
  "FSectionName": "sample string 1",
  "FKey": 2,
  "FAddOil": 1.0,
  "FCollectionTime": "2025-12-06 13:45:29",
  "FCollectionMileage": 1,
  "FCollectionMileageImage": "sample string 3",
  "FCollectionOil": 1.0,
  "FCollectionOilImage": "sample string 4",
  "FOptId": 1,
  "FOptName": "sample string 5",
  "FOptTime": "2025-12-06 13:45:29"
}

application/xml, text/xml

Sample:
<EditCarmileageViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DY.Entity.ViewModel">
  <FAddOil>1</FAddOil>
  <FCollectionMileage>1</FCollectionMileage>
  <FCollectionMileageImage>sample string 3</FCollectionMileageImage>
  <FCollectionOil>1</FCollectionOil>
  <FCollectionOilImage>sample string 4</FCollectionOilImage>
  <FCollectionTime>2025-12-06T13:45:29.0593855+08:00</FCollectionTime>
  <FCompId>1</FCompId>
  <FKey>2</FKey>
  <FOptId>1</FOptId>
  <FOptName>sample string 5</FOptName>
  <FOptTime>2025-12-06T13:45:29.0593855+08:00</FOptTime>
  <FSectionId>1</FSectionId>
  <FSectionName>sample string 1</FSectionName>
</EditCarmileageViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

MessageModelOfInt32
NameDescriptionTypeAdditional information
Status

integer

None.

Success

boolean

None.

Msg

string

None.

Response

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Status": 200,
  "Success": true,
  "Msg": "sample string 3",
  "Response": 4
}

application/xml, text/xml

Sample:
<MessageModelOfint xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DY.Entity">
  <Msg>sample string 3</Msg>
  <Response>4</Response>
  <Status>200</Status>
  <Success>true</Success>
</MessageModelOfint>