POST Photo/AddRentPhotos

Request Information

URI Parameters

None.

Body Parameters

CarRentPhotosRequest
NameDescriptionTypeAdditional information
adv_id

integer

None.

rent_id

integer

None.

base64_image

string

None.

ext

string

None.

photo_from

integer

None.

photo_type

integer

None.

rent_type

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "adv_id": 1,
  "rent_id": 2,
  "base64_image": "sample string 3",
  "ext": "sample string 4",
  "photo_from": 5,
  "photo_type": 6,
  "rent_type": 7
}

application/xml, text/xml

Sample:
<CarRentPhotosRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RentekerAPIProject.Controllers">
  <adv_id>1</adv_id>
  <base64_image>sample string 3</base64_image>
  <ext>sample string 4</ext>
  <photo_from>5</photo_from>
  <photo_type>6</photo_type>
  <rent_id>2</rent_id>
  <rent_type>7</rent_type>
</CarRentPhotosRequest>

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

Response Information

Resource Description

PhotosResponse
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:
<PhotosResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RentekerAPIProject.Controllers">
  <message>sample string 2</message>
  <success>true</success>
</PhotosResponse>