POST Car/EditPhoto

Request Information

URI Parameters

None.

Body Parameters

CarEditPhotoRequest
NameDescriptionTypeAdditional information
car_id

integer

None.

photo_type

integer

None.

base64_image

string

None.

ext

string

None.

Request Formats

application/json, text/json

Sample:
{
  "car_id": 1,
  "photo_type": 2,
  "base64_image": "sample string 3",
  "ext": "sample string 4"
}

application/xml, text/xml

Sample:
<CarEditPhotoRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RentekerAPIProject.Controllers">
  <base64_image>sample string 3</base64_image>
  <car_id>1</car_id>
  <ext>sample string 4</ext>
  <photo_type>2</photo_type>
</CarEditPhotoRequest>

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 'CarEditPhotoRequest'.

Response Information

Resource Description

GeneralResponse
NameDescriptionTypeAdditional information
success

boolean

None.

message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "success": true,
  "message": "sample string 2"
}

application/xml, text/xml

Sample:
<AppSettings.GeneralResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RentekerAPIProject">
  <message>sample string 2</message>
  <success>true</success>
</AppSettings.GeneralResponse>