Path parameters
-
adId
string Required Id of an advertisement. It is either id that was provided in the response of the insert endpoint or it can be thirdPartyId, if it has been provided in the request body of the advertisement insert endpoint.
Body
-
status
string | null This field controls the publicity status of the ad. Ads with status
open
andreserved
will be publicly visible. Others will be hidden. If the advertised property was sold, use statussold
. If the advertised property failed to sell and should be hidden, use the statuslost
. If you don't have the information about whether the property was sold or failed to sell or you want to hide it for any other reason, use the statusinactive
. If not provided upon insertion, it will default toopen
.Values are
open
,reserved
,sold
,lost
, orinactive
. -
type
string | null Values are
sell
,rent
,auction
, orshare
. -
advertiserId
string Id of an advertiser. It is either id that was provided in the response of the insert endpoint or it can be thirdPartyId, if it has been provided in the request body of the advertiser insert endpoint.
-
advertisingCompanyId
string | null Id of a company. It is either id that was provided in the response of the insert endpoint or it can be thirdPartyId, if it has been provided in the request body of the company insert endpoint.
-
price
number(float) | null Use total price for type
sell
and monthly rent for typerent
. -
currency
string | null Values are
czk
,usd
, oreur
. -
priceNote
string | null -
location
string Most accurate location description of a location. Preferably exact address in the format common for the given country. If that isn't possible, provide us with the most accurate location description possible. (eg. '{street name}, {city}')
-
locationAccuracy
string | null Accuracy of the provided location. If not provided upon insertion, will default to
exact
.- If accuracy is missing or is set to
exact
we will display the exact location that was provided. - If accuracy is set to other value we will try to find the closest entity of provided type, if we don't find it we will display the nearest non-exact entity we can find (eg. street)
Values are
exact
,street
,municipality_part
,municipality
,cadastral_area
, ornearest_non_exact_geo_entity
. - If accuracy is missing or is set to
-
description
string | null -
referenceId
string | null Also known as 'advert_code' on other platforms.
-
matterportUrl
string | null -
possibleMoveInDate
string(date-time) | null -
estimatedOtherCosts
number(float) | null -
point
object | null
curl \
-X PATCH http://apis.public-staging.reas.cz/advertising/v1.0/ads/63d9007e66fc41b2cd1057c6 \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"status":"open","type":"sell","advertiserId":"63d9007e66fc41b2cd1057c6","advertisingCompanyId":"63d9007e66fc41b2cd1057c6","price":42.0,"currency":"czk","priceNote":"string","location":"Jablonecká 415/4, Praha 9","locationAccuracy":"exact","description":"string","referenceId":"string","matterportUrl":"string","possibleMoveInDate":"2024-05-04T09:42:00+00:00","estimatedOtherCosts":42.0,"point":{"latitude":42.0,"longitude":42.0},"property":{"type":"flat","subType":"flat","floor":42.0,"ownership":"private","disposition":"1+kk","floorArea":42.0,"utilityArea":42.0,"constructionType":"brick","elevator":true,"floorsCount":42.0,"balcony":true,"balconyArea":42.0,"loggia":true,"loggiaArea":42.0,"cellar":true,"cellarArea":42.0,"terrace":true,"terraceArea":42.0,"parkingSpace":true,"parkingSpaceCount":42.0,"accessibility":true,"heatingKind":["solid_fuels"],"energyClass":"A","sauna":true,"fireplace":true}}'
{
"status": "open",
"type": "sell",
"advertiserId": "63d9007e66fc41b2cd1057c6",
"advertisingCompanyId": "63d9007e66fc41b2cd1057c6",
"price": 42.0,
"currency": "czk",
"priceNote": "string",
"location": "Jablonecká 415/4, Praha 9",
"locationAccuracy": "exact",
"description": "string",
"referenceId": "string",
"matterportUrl": "string",
"possibleMoveInDate": "2024-05-04T09:42:00+00:00",
"estimatedOtherCosts": 42.0,
"point": {
"latitude": 42.0,
"longitude": 42.0
},
"property": {
"type": "flat",
"subType": "flat",
"floor": 42.0,
"ownership": "private",
"disposition": "1+kk",
"floorArea": 42.0,
"utilityArea": 42.0,
"constructionType": "brick",
"elevator": true,
"floorsCount": 42.0,
"balcony": true,
"balconyArea": 42.0,
"loggia": true,
"loggiaArea": 42.0,
"cellar": true,
"cellarArea": 42.0,
"terrace": true,
"terraceArea": 42.0,
"parkingSpace": true,
"parkingSpaceCount": 42.0,
"accessibility": true,
"heatingKind": [
"solid_fuels"
],
"energyClass": "A",
"sauna": true,
"fireplace": true
}
}
{
"success": true,
"data": {
"thirdPartyId": "1000025",
"status": "open",
"type": "sell",
"advertiserId": "63d9007e66fc41b2cd1057c6",
"advertisingCompanyId": "63d9007e66fc41b2cd1057c6",
"price": 42.0,
"currency": "czk",
"priceNote": "string",
"location": "Jablonecká 415/4, Praha 9",
"locationAccuracy": "exact",
"description": "string",
"referenceId": "string",
"matterportUrl": "string",
"possibleMoveInDate": "2024-05-04T09:42:00+00:00",
"estimatedOtherCosts": 42.0,
"point": {
"latitude": 42.0,
"longitude": 42.0
},
"property": {
"type": "flat",
"subType": "flat",
"floor": 42.0,
"ownership": "private",
"disposition": "1+kk",
"floorArea": 42.0,
"utilityArea": 42.0,
"constructionType": "brick",
"elevator": true,
"floorsCount": 42.0,
"balcony": true,
"balconyArea": 42.0,
"loggia": true,
"loggiaArea": 42.0,
"cellar": true,
"cellarArea": 42.0,
"terrace": true,
"terraceArea": 42.0,
"parkingSpace": true,
"parkingSpaceCount": 42.0,
"accessibility": true,
"heatingKind": [
"solid_fuels"
],
"energyClass": "A",
"sauna": true,
"fireplace": true
},
"id": "string",
"advertiserThirdPartyId": "string",
"advertisingCompanyThirdPartyId": "string",
"previewUrl": "string"
}
}