Update the search criteria of a Property alert
curl --request PATCH \
--url https://api.fluximmo.io/v2/protected/properties/search/alerts/{alertId} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"search_query": {
"filterProperty": {
"adverts": [],
"habitation": {
"bathroomCount": {
"max": 123,
"min": 123
},
"bedroomCount": {
"max": 123,
"min": 123
},
"characteristics": {
"hasAlarm": true,
"hasBalcony": true,
"hasCellar": true,
"hasConcierge": true,
"hasDigicode": true,
"hasFireplace": true,
"hasGarage": true,
"hasGarden": true,
"hasGrenier": true,
"hasInterphone": true,
"hasJacuzzi": true,
"hasLand": true,
"hasLift": true,
"hasMezzanine": true,
"hasParking": true,
"hasPool": true,
"hasTerrace": true,
"hasVisAVis": true,
"isPeaceful": true
},
"climate": {
"epcClimate": [],
"epcClimateScore": {
"max": 123,
"min": 123
},
"epcEnergy": [],
"epcEnergyScore": {
"max": 123,
"min": 123
},
"epcClimateDate": {
"max": "2022-10-21T11:31:33.593Z",
"min": "2022-10-21T11:31:33.593Z"
},
"epcEnergyDate": {
"max": "2022-10-21T11:31:33.593Z",
"min": "2022-10-21T11:31:33.593Z"
}
},
"features": {
"exposure": [],
"furniture": [],
"propertyFloor": {
"max": 123,
"min": 123
},
"propertyTotalFloor": {
"max": 123,
"min": 123
},
"constructionMaterials": [],
"glazingTypes": [],
"hasThroughExposure": true,
"viewOns": [],
"viewTypes": []
},
"heatTypes": [],
"heatTypeDetails": [],
"heatings": [],
"propertyCondition": [
{
"constructionYear": 123,
"interiorCondition": null,
"renovationYear": 123,
"generalConditions": []
}
],
"roomCount": {
"max": 123,
"min": 123
},
"surface": {
"balconies": {
"max": 123,
"min": 123
},
"floorSpace": {
"max": 123,
"min": 123
},
"gardens": {
"max": 123,
"min": 123
},
"groundFloor": {
"max": 123,
"min": 123
},
"kitchen": {
"max": 123,
"min": 123
},
"livingSpace": {
"max": 123,
"min": 123
},
"livingroom": {
"max": 123,
"min": 123
},
"terraces": {
"max": 123,
"min": 123
},
"total": {
"max": 123,
"min": 123
}
},
"type": "PROPERTY_TYPE_T1_T2",
"wcCount": {
"max": 123,
"min": 123
}
},
"isUrgent": true,
"land": {
"canConstruct": true,
"isServiced": true,
"surface": {
"max": 123,
"min": 123
},
"surfaceConstructable": {
"max": 123,
"min": 123
},
"type": [],
"haveBuildingPermit": true,
"haveElectricity": true,
"haveTelecom": true,
"haveWater": true
},
"location": [],
"meta": {
"firstSeenAt": {
"max": "2022-10-21T11:31:33.593Z",
"min": "2022-10-21T11:31:33.593Z"
},
"isTotallyOffline": true,
"lastPublishedAt": {
"max": "2022-10-21T11:31:33.593Z",
"min": "2022-10-21T11:31:33.593Z"
},
"lastSeenAt": {
"max": "2022-10-21T11:31:33.593Z",
"min": "2022-10-21T11:31:33.593Z"
},
"lastUpdatedAt": {
"max": "2022-10-21T11:31:33.593Z",
"min": "2022-10-21T11:31:33.593Z"
}
},
"parking": {
"count": {
"max": 123,
"min": 123
},
"numberOfCars": {
"max": 123,
"min": 123
},
"surface": {
"max": 123,
"min": 123
},
"type": []
},
"price": {
"currency": [],
"initial": {
"source": {
"flxId": "<string>",
"url": "<string>",
"website": "<string>"
},
"value": {
"max": 123,
"min": 123
},
"valuePerArea": {
"max": 123,
"min": 123
}
},
"isAuction": true,
"latest": {
"source": {
"flxId": "<string>",
"url": "<string>",
"website": "<string>"
},
"value": {
"max": 123,
"min": 123
},
"valuePerArea": {
"max": 123,
"min": 123
}
},
"scope": [],
"warrantyDeposit": {
"max": 123,
"min": 123
},
"variation": []
},
"process": [],
"tags": [
"<string>"
],
"type": [
"CLASS_HOUSE"
],
"hasAnomaly": true,
"offer": []
},
"fullTexts": [
"<string>"
],
"keywords": [
"<string>"
]
},
"webhook_url": "<string>",
"search_name": "<string>",
"match": [
"ALERT_MATCH_CREATED"
],
"context": {
"metadata": {}
}
}
'import requests
url = "https://api.fluximmo.io/v2/protected/properties/search/alerts/{alertId}"
payload = {
"search_query": {
"filterProperty": {
"adverts": [],
"habitation": {
"bathroomCount": {
"max": 123,
"min": 123
},
"bedroomCount": {
"max": 123,
"min": 123
},
"characteristics": {
"hasAlarm": True,
"hasBalcony": True,
"hasCellar": True,
"hasConcierge": True,
"hasDigicode": True,
"hasFireplace": True,
"hasGarage": True,
"hasGarden": True,
"hasGrenier": True,
"hasInterphone": True,
"hasJacuzzi": True,
"hasLand": True,
"hasLift": True,
"hasMezzanine": True,
"hasParking": True,
"hasPool": True,
"hasTerrace": True,
"hasVisAVis": True,
"isPeaceful": True
},
"climate": {
"epcClimate": [],
"epcClimateScore": {
"max": 123,
"min": 123
},
"epcEnergy": [],
"epcEnergyScore": {
"max": 123,
"min": 123
},
"epcClimateDate": {
"max": "2022-10-21T11:31:33.593Z",
"min": "2022-10-21T11:31:33.593Z"
},
"epcEnergyDate": {
"max": "2022-10-21T11:31:33.593Z",
"min": "2022-10-21T11:31:33.593Z"
}
},
"features": {
"exposure": [],
"furniture": [],
"propertyFloor": {
"max": 123,
"min": 123
},
"propertyTotalFloor": {
"max": 123,
"min": 123
},
"constructionMaterials": [],
"glazingTypes": [],
"hasThroughExposure": True,
"viewOns": [],
"viewTypes": []
},
"heatTypes": [],
"heatTypeDetails": [],
"heatings": [],
"propertyCondition": [
{
"constructionYear": 123,
"interiorCondition": None,
"renovationYear": 123,
"generalConditions": []
}
],
"roomCount": {
"max": 123,
"min": 123
},
"surface": {
"balconies": {
"max": 123,
"min": 123
},
"floorSpace": {
"max": 123,
"min": 123
},
"gardens": {
"max": 123,
"min": 123
},
"groundFloor": {
"max": 123,
"min": 123
},
"kitchen": {
"max": 123,
"min": 123
},
"livingSpace": {
"max": 123,
"min": 123
},
"livingroom": {
"max": 123,
"min": 123
},
"terraces": {
"max": 123,
"min": 123
},
"total": {
"max": 123,
"min": 123
}
},
"type": "PROPERTY_TYPE_T1_T2",
"wcCount": {
"max": 123,
"min": 123
}
},
"isUrgent": True,
"land": {
"canConstruct": True,
"isServiced": True,
"surface": {
"max": 123,
"min": 123
},
"surfaceConstructable": {
"max": 123,
"min": 123
},
"type": [],
"haveBuildingPermit": True,
"haveElectricity": True,
"haveTelecom": True,
"haveWater": True
},
"location": [],
"meta": {
"firstSeenAt": {
"max": "2022-10-21T11:31:33.593Z",
"min": "2022-10-21T11:31:33.593Z"
},
"isTotallyOffline": True,
"lastPublishedAt": {
"max": "2022-10-21T11:31:33.593Z",
"min": "2022-10-21T11:31:33.593Z"
},
"lastSeenAt": {
"max": "2022-10-21T11:31:33.593Z",
"min": "2022-10-21T11:31:33.593Z"
},
"lastUpdatedAt": {
"max": "2022-10-21T11:31:33.593Z",
"min": "2022-10-21T11:31:33.593Z"
}
},
"parking": {
"count": {
"max": 123,
"min": 123
},
"numberOfCars": {
"max": 123,
"min": 123
},
"surface": {
"max": 123,
"min": 123
},
"type": []
},
"price": {
"currency": [],
"initial": {
"source": {
"flxId": "<string>",
"url": "<string>",
"website": "<string>"
},
"value": {
"max": 123,
"min": 123
},
"valuePerArea": {
"max": 123,
"min": 123
}
},
"isAuction": True,
"latest": {
"source": {
"flxId": "<string>",
"url": "<string>",
"website": "<string>"
},
"value": {
"max": 123,
"min": 123
},
"valuePerArea": {
"max": 123,
"min": 123
}
},
"scope": [],
"warrantyDeposit": {
"max": 123,
"min": 123
},
"variation": []
},
"process": [],
"tags": ["<string>"],
"type": ["CLASS_HOUSE"],
"hasAnomaly": True,
"offer": []
},
"fullTexts": ["<string>"],
"keywords": ["<string>"]
},
"webhook_url": "<string>",
"search_name": "<string>",
"match": ["ALERT_MATCH_CREATED"],
"context": { "metadata": {} }
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
search_query: {
filterProperty: {
adverts: [],
habitation: {
bathroomCount: {max: 123, min: 123},
bedroomCount: {max: 123, min: 123},
characteristics: {
hasAlarm: true,
hasBalcony: true,
hasCellar: true,
hasConcierge: true,
hasDigicode: true,
hasFireplace: true,
hasGarage: true,
hasGarden: true,
hasGrenier: true,
hasInterphone: true,
hasJacuzzi: true,
hasLand: true,
hasLift: true,
hasMezzanine: true,
hasParking: true,
hasPool: true,
hasTerrace: true,
hasVisAVis: true,
isPeaceful: true
},
climate: {
epcClimate: [],
epcClimateScore: {max: 123, min: 123},
epcEnergy: [],
epcEnergyScore: {max: 123, min: 123},
epcClimateDate: {max: '2022-10-21T11:31:33.593Z', min: '2022-10-21T11:31:33.593Z'},
epcEnergyDate: {max: '2022-10-21T11:31:33.593Z', min: '2022-10-21T11:31:33.593Z'}
},
features: {
exposure: [],
furniture: [],
propertyFloor: {max: 123, min: 123},
propertyTotalFloor: {max: 123, min: 123},
constructionMaterials: [],
glazingTypes: [],
hasThroughExposure: true,
viewOns: [],
viewTypes: []
},
heatTypes: [],
heatTypeDetails: [],
heatings: [],
propertyCondition: [
{
constructionYear: 123,
interiorCondition: null,
renovationYear: 123,
generalConditions: []
}
],
roomCount: {max: 123, min: 123},
surface: {
balconies: {max: 123, min: 123},
floorSpace: {max: 123, min: 123},
gardens: {max: 123, min: 123},
groundFloor: {max: 123, min: 123},
kitchen: {max: 123, min: 123},
livingSpace: {max: 123, min: 123},
livingroom: {max: 123, min: 123},
terraces: {max: 123, min: 123},
total: {max: 123, min: 123}
},
type: 'PROPERTY_TYPE_T1_T2',
wcCount: {max: 123, min: 123}
},
isUrgent: true,
land: {
canConstruct: true,
isServiced: true,
surface: {max: 123, min: 123},
surfaceConstructable: {max: 123, min: 123},
type: [],
haveBuildingPermit: true,
haveElectricity: true,
haveTelecom: true,
haveWater: true
},
location: [],
meta: {
firstSeenAt: {max: '2022-10-21T11:31:33.593Z', min: '2022-10-21T11:31:33.593Z'},
isTotallyOffline: true,
lastPublishedAt: {max: '2022-10-21T11:31:33.593Z', min: '2022-10-21T11:31:33.593Z'},
lastSeenAt: {max: '2022-10-21T11:31:33.593Z', min: '2022-10-21T11:31:33.593Z'},
lastUpdatedAt: {max: '2022-10-21T11:31:33.593Z', min: '2022-10-21T11:31:33.593Z'}
},
parking: {
count: {max: 123, min: 123},
numberOfCars: {max: 123, min: 123},
surface: {max: 123, min: 123},
type: []
},
price: {
currency: [],
initial: {
source: {flxId: '<string>', url: '<string>', website: '<string>'},
value: {max: 123, min: 123},
valuePerArea: {max: 123, min: 123}
},
isAuction: true,
latest: {
source: {flxId: '<string>', url: '<string>', website: '<string>'},
value: {max: 123, min: 123},
valuePerArea: {max: 123, min: 123}
},
scope: [],
warrantyDeposit: {max: 123, min: 123},
variation: []
},
process: [],
tags: ['<string>'],
type: ['CLASS_HOUSE'],
hasAnomaly: true,
offer: []
},
fullTexts: ['<string>'],
keywords: ['<string>']
},
webhook_url: '<string>',
search_name: '<string>',
match: ['ALERT_MATCH_CREATED'],
context: {metadata: {}}
})
};
fetch('https://api.fluximmo.io/v2/protected/properties/search/alerts/{alertId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.fluximmo.io/v2/protected/properties/search/alerts/{alertId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'search_query' => [
'filterProperty' => [
'adverts' => [
],
'habitation' => [
'bathroomCount' => [
'max' => 123,
'min' => 123
],
'bedroomCount' => [
'max' => 123,
'min' => 123
],
'characteristics' => [
'hasAlarm' => true,
'hasBalcony' => true,
'hasCellar' => true,
'hasConcierge' => true,
'hasDigicode' => true,
'hasFireplace' => true,
'hasGarage' => true,
'hasGarden' => true,
'hasGrenier' => true,
'hasInterphone' => true,
'hasJacuzzi' => true,
'hasLand' => true,
'hasLift' => true,
'hasMezzanine' => true,
'hasParking' => true,
'hasPool' => true,
'hasTerrace' => true,
'hasVisAVis' => true,
'isPeaceful' => true
],
'climate' => [
'epcClimate' => [
],
'epcClimateScore' => [
'max' => 123,
'min' => 123
],
'epcEnergy' => [
],
'epcEnergyScore' => [
'max' => 123,
'min' => 123
],
'epcClimateDate' => [
'max' => '2022-10-21T11:31:33.593Z',
'min' => '2022-10-21T11:31:33.593Z'
],
'epcEnergyDate' => [
'max' => '2022-10-21T11:31:33.593Z',
'min' => '2022-10-21T11:31:33.593Z'
]
],
'features' => [
'exposure' => [
],
'furniture' => [
],
'propertyFloor' => [
'max' => 123,
'min' => 123
],
'propertyTotalFloor' => [
'max' => 123,
'min' => 123
],
'constructionMaterials' => [
],
'glazingTypes' => [
],
'hasThroughExposure' => true,
'viewOns' => [
],
'viewTypes' => [
]
],
'heatTypes' => [
],
'heatTypeDetails' => [
],
'heatings' => [
],
'propertyCondition' => [
[
'constructionYear' => 123,
'interiorCondition' => null,
'renovationYear' => 123,
'generalConditions' => [
]
]
],
'roomCount' => [
'max' => 123,
'min' => 123
],
'surface' => [
'balconies' => [
'max' => 123,
'min' => 123
],
'floorSpace' => [
'max' => 123,
'min' => 123
],
'gardens' => [
'max' => 123,
'min' => 123
],
'groundFloor' => [
'max' => 123,
'min' => 123
],
'kitchen' => [
'max' => 123,
'min' => 123
],
'livingSpace' => [
'max' => 123,
'min' => 123
],
'livingroom' => [
'max' => 123,
'min' => 123
],
'terraces' => [
'max' => 123,
'min' => 123
],
'total' => [
'max' => 123,
'min' => 123
]
],
'type' => 'PROPERTY_TYPE_T1_T2',
'wcCount' => [
'max' => 123,
'min' => 123
]
],
'isUrgent' => true,
'land' => [
'canConstruct' => true,
'isServiced' => true,
'surface' => [
'max' => 123,
'min' => 123
],
'surfaceConstructable' => [
'max' => 123,
'min' => 123
],
'type' => [
],
'haveBuildingPermit' => true,
'haveElectricity' => true,
'haveTelecom' => true,
'haveWater' => true
],
'location' => [
],
'meta' => [
'firstSeenAt' => [
'max' => '2022-10-21T11:31:33.593Z',
'min' => '2022-10-21T11:31:33.593Z'
],
'isTotallyOffline' => true,
'lastPublishedAt' => [
'max' => '2022-10-21T11:31:33.593Z',
'min' => '2022-10-21T11:31:33.593Z'
],
'lastSeenAt' => [
'max' => '2022-10-21T11:31:33.593Z',
'min' => '2022-10-21T11:31:33.593Z'
],
'lastUpdatedAt' => [
'max' => '2022-10-21T11:31:33.593Z',
'min' => '2022-10-21T11:31:33.593Z'
]
],
'parking' => [
'count' => [
'max' => 123,
'min' => 123
],
'numberOfCars' => [
'max' => 123,
'min' => 123
],
'surface' => [
'max' => 123,
'min' => 123
],
'type' => [
]
],
'price' => [
'currency' => [
],
'initial' => [
'source' => [
'flxId' => '<string>',
'url' => '<string>',
'website' => '<string>'
],
'value' => [
'max' => 123,
'min' => 123
],
'valuePerArea' => [
'max' => 123,
'min' => 123
]
],
'isAuction' => true,
'latest' => [
'source' => [
'flxId' => '<string>',
'url' => '<string>',
'website' => '<string>'
],
'value' => [
'max' => 123,
'min' => 123
],
'valuePerArea' => [
'max' => 123,
'min' => 123
]
],
'scope' => [
],
'warrantyDeposit' => [
'max' => 123,
'min' => 123
],
'variation' => [
]
],
'process' => [
],
'tags' => [
'<string>'
],
'type' => [
'CLASS_HOUSE'
],
'hasAnomaly' => true,
'offer' => [
]
],
'fullTexts' => [
'<string>'
],
'keywords' => [
'<string>'
]
],
'webhook_url' => '<string>',
'search_name' => '<string>',
'match' => [
'ALERT_MATCH_CREATED'
],
'context' => [
'metadata' => [
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.fluximmo.io/v2/protected/properties/search/alerts/{alertId}"
payload := strings.NewReader("{\n \"search_query\": {\n \"filterProperty\": {\n \"adverts\": [],\n \"habitation\": {\n \"bathroomCount\": {\n \"max\": 123,\n \"min\": 123\n },\n \"bedroomCount\": {\n \"max\": 123,\n \"min\": 123\n },\n \"characteristics\": {\n \"hasAlarm\": true,\n \"hasBalcony\": true,\n \"hasCellar\": true,\n \"hasConcierge\": true,\n \"hasDigicode\": true,\n \"hasFireplace\": true,\n \"hasGarage\": true,\n \"hasGarden\": true,\n \"hasGrenier\": true,\n \"hasInterphone\": true,\n \"hasJacuzzi\": true,\n \"hasLand\": true,\n \"hasLift\": true,\n \"hasMezzanine\": true,\n \"hasParking\": true,\n \"hasPool\": true,\n \"hasTerrace\": true,\n \"hasVisAVis\": true,\n \"isPeaceful\": true\n },\n \"climate\": {\n \"epcClimate\": [],\n \"epcClimateScore\": {\n \"max\": 123,\n \"min\": 123\n },\n \"epcEnergy\": [],\n \"epcEnergyScore\": {\n \"max\": 123,\n \"min\": 123\n },\n \"epcClimateDate\": {\n \"max\": \"2022-10-21T11:31:33.593Z\",\n \"min\": \"2022-10-21T11:31:33.593Z\"\n },\n \"epcEnergyDate\": {\n \"max\": \"2022-10-21T11:31:33.593Z\",\n \"min\": \"2022-10-21T11:31:33.593Z\"\n }\n },\n \"features\": {\n \"exposure\": [],\n \"furniture\": [],\n \"propertyFloor\": {\n \"max\": 123,\n \"min\": 123\n },\n \"propertyTotalFloor\": {\n \"max\": 123,\n \"min\": 123\n },\n \"constructionMaterials\": [],\n \"glazingTypes\": [],\n \"hasThroughExposure\": true,\n \"viewOns\": [],\n \"viewTypes\": []\n },\n \"heatTypes\": [],\n \"heatTypeDetails\": [],\n \"heatings\": [],\n \"propertyCondition\": [\n {\n \"constructionYear\": 123,\n \"interiorCondition\": null,\n \"renovationYear\": 123,\n \"generalConditions\": []\n }\n ],\n \"roomCount\": {\n \"max\": 123,\n \"min\": 123\n },\n \"surface\": {\n \"balconies\": {\n \"max\": 123,\n \"min\": 123\n },\n \"floorSpace\": {\n \"max\": 123,\n \"min\": 123\n },\n \"gardens\": {\n \"max\": 123,\n \"min\": 123\n },\n \"groundFloor\": {\n \"max\": 123,\n \"min\": 123\n },\n \"kitchen\": {\n \"max\": 123,\n \"min\": 123\n },\n \"livingSpace\": {\n \"max\": 123,\n \"min\": 123\n },\n \"livingroom\": {\n \"max\": 123,\n \"min\": 123\n },\n \"terraces\": {\n \"max\": 123,\n \"min\": 123\n },\n \"total\": {\n \"max\": 123,\n \"min\": 123\n }\n },\n \"type\": \"PROPERTY_TYPE_T1_T2\",\n \"wcCount\": {\n \"max\": 123,\n \"min\": 123\n }\n },\n \"isUrgent\": true,\n \"land\": {\n \"canConstruct\": true,\n \"isServiced\": true,\n \"surface\": {\n \"max\": 123,\n \"min\": 123\n },\n \"surfaceConstructable\": {\n \"max\": 123,\n \"min\": 123\n },\n \"type\": [],\n \"haveBuildingPermit\": true,\n \"haveElectricity\": true,\n \"haveTelecom\": true,\n \"haveWater\": true\n },\n \"location\": [],\n \"meta\": {\n \"firstSeenAt\": {\n \"max\": \"2022-10-21T11:31:33.593Z\",\n \"min\": \"2022-10-21T11:31:33.593Z\"\n },\n \"isTotallyOffline\": true,\n \"lastPublishedAt\": {\n \"max\": \"2022-10-21T11:31:33.593Z\",\n \"min\": \"2022-10-21T11:31:33.593Z\"\n },\n \"lastSeenAt\": {\n \"max\": \"2022-10-21T11:31:33.593Z\",\n \"min\": \"2022-10-21T11:31:33.593Z\"\n },\n \"lastUpdatedAt\": {\n \"max\": \"2022-10-21T11:31:33.593Z\",\n \"min\": \"2022-10-21T11:31:33.593Z\"\n }\n },\n \"parking\": {\n \"count\": {\n \"max\": 123,\n \"min\": 123\n },\n \"numberOfCars\": {\n \"max\": 123,\n \"min\": 123\n },\n \"surface\": {\n \"max\": 123,\n \"min\": 123\n },\n \"type\": []\n },\n \"price\": {\n \"currency\": [],\n \"initial\": {\n \"source\": {\n \"flxId\": \"<string>\",\n \"url\": \"<string>\",\n \"website\": \"<string>\"\n },\n \"value\": {\n \"max\": 123,\n \"min\": 123\n },\n \"valuePerArea\": {\n \"max\": 123,\n \"min\": 123\n }\n },\n \"isAuction\": true,\n \"latest\": {\n \"source\": {\n \"flxId\": \"<string>\",\n \"url\": \"<string>\",\n \"website\": \"<string>\"\n },\n \"value\": {\n \"max\": 123,\n \"min\": 123\n },\n \"valuePerArea\": {\n \"max\": 123,\n \"min\": 123\n }\n },\n \"scope\": [],\n \"warrantyDeposit\": {\n \"max\": 123,\n \"min\": 123\n },\n \"variation\": []\n },\n \"process\": [],\n \"tags\": [\n \"<string>\"\n ],\n \"type\": [\n \"CLASS_HOUSE\"\n ],\n \"hasAnomaly\": true,\n \"offer\": []\n },\n \"fullTexts\": [\n \"<string>\"\n ],\n \"keywords\": [\n \"<string>\"\n ]\n },\n \"webhook_url\": \"<string>\",\n \"search_name\": \"<string>\",\n \"match\": [\n \"ALERT_MATCH_CREATED\"\n ],\n \"context\": {\n \"metadata\": {}\n }\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.fluximmo.io/v2/protected/properties/search/alerts/{alertId}")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"search_query\": {\n \"filterProperty\": {\n \"adverts\": [],\n \"habitation\": {\n \"bathroomCount\": {\n \"max\": 123,\n \"min\": 123\n },\n \"bedroomCount\": {\n \"max\": 123,\n \"min\": 123\n },\n \"characteristics\": {\n \"hasAlarm\": true,\n \"hasBalcony\": true,\n \"hasCellar\": true,\n \"hasConcierge\": true,\n \"hasDigicode\": true,\n \"hasFireplace\": true,\n \"hasGarage\": true,\n \"hasGarden\": true,\n \"hasGrenier\": true,\n \"hasInterphone\": true,\n \"hasJacuzzi\": true,\n \"hasLand\": true,\n \"hasLift\": true,\n \"hasMezzanine\": true,\n \"hasParking\": true,\n \"hasPool\": true,\n \"hasTerrace\": true,\n \"hasVisAVis\": true,\n \"isPeaceful\": true\n },\n \"climate\": {\n \"epcClimate\": [],\n \"epcClimateScore\": {\n \"max\": 123,\n \"min\": 123\n },\n \"epcEnergy\": [],\n \"epcEnergyScore\": {\n \"max\": 123,\n \"min\": 123\n },\n \"epcClimateDate\": {\n \"max\": \"2022-10-21T11:31:33.593Z\",\n \"min\": \"2022-10-21T11:31:33.593Z\"\n },\n \"epcEnergyDate\": {\n \"max\": \"2022-10-21T11:31:33.593Z\",\n \"min\": \"2022-10-21T11:31:33.593Z\"\n }\n },\n \"features\": {\n \"exposure\": [],\n \"furniture\": [],\n \"propertyFloor\": {\n \"max\": 123,\n \"min\": 123\n },\n \"propertyTotalFloor\": {\n \"max\": 123,\n \"min\": 123\n },\n \"constructionMaterials\": [],\n \"glazingTypes\": [],\n \"hasThroughExposure\": true,\n \"viewOns\": [],\n \"viewTypes\": []\n },\n \"heatTypes\": [],\n \"heatTypeDetails\": [],\n \"heatings\": [],\n \"propertyCondition\": [\n {\n \"constructionYear\": 123,\n \"interiorCondition\": null,\n \"renovationYear\": 123,\n \"generalConditions\": []\n }\n ],\n \"roomCount\": {\n \"max\": 123,\n \"min\": 123\n },\n \"surface\": {\n \"balconies\": {\n \"max\": 123,\n \"min\": 123\n },\n \"floorSpace\": {\n \"max\": 123,\n \"min\": 123\n },\n \"gardens\": {\n \"max\": 123,\n \"min\": 123\n },\n \"groundFloor\": {\n \"max\": 123,\n \"min\": 123\n },\n \"kitchen\": {\n \"max\": 123,\n \"min\": 123\n },\n \"livingSpace\": {\n \"max\": 123,\n \"min\": 123\n },\n \"livingroom\": {\n \"max\": 123,\n \"min\": 123\n },\n \"terraces\": {\n \"max\": 123,\n \"min\": 123\n },\n \"total\": {\n \"max\": 123,\n \"min\": 123\n }\n },\n \"type\": \"PROPERTY_TYPE_T1_T2\",\n \"wcCount\": {\n \"max\": 123,\n \"min\": 123\n }\n },\n \"isUrgent\": true,\n \"land\": {\n \"canConstruct\": true,\n \"isServiced\": true,\n \"surface\": {\n \"max\": 123,\n \"min\": 123\n },\n \"surfaceConstructable\": {\n \"max\": 123,\n \"min\": 123\n },\n \"type\": [],\n \"haveBuildingPermit\": true,\n \"haveElectricity\": true,\n \"haveTelecom\": true,\n \"haveWater\": true\n },\n \"location\": [],\n \"meta\": {\n \"firstSeenAt\": {\n \"max\": \"2022-10-21T11:31:33.593Z\",\n \"min\": \"2022-10-21T11:31:33.593Z\"\n },\n \"isTotallyOffline\": true,\n \"lastPublishedAt\": {\n \"max\": \"2022-10-21T11:31:33.593Z\",\n \"min\": \"2022-10-21T11:31:33.593Z\"\n },\n \"lastSeenAt\": {\n \"max\": \"2022-10-21T11:31:33.593Z\",\n \"min\": \"2022-10-21T11:31:33.593Z\"\n },\n \"lastUpdatedAt\": {\n \"max\": \"2022-10-21T11:31:33.593Z\",\n \"min\": \"2022-10-21T11:31:33.593Z\"\n }\n },\n \"parking\": {\n \"count\": {\n \"max\": 123,\n \"min\": 123\n },\n \"numberOfCars\": {\n \"max\": 123,\n \"min\": 123\n },\n \"surface\": {\n \"max\": 123,\n \"min\": 123\n },\n \"type\": []\n },\n \"price\": {\n \"currency\": [],\n \"initial\": {\n \"source\": {\n \"flxId\": \"<string>\",\n \"url\": \"<string>\",\n \"website\": \"<string>\"\n },\n \"value\": {\n \"max\": 123,\n \"min\": 123\n },\n \"valuePerArea\": {\n \"max\": 123,\n \"min\": 123\n }\n },\n \"isAuction\": true,\n \"latest\": {\n \"source\": {\n \"flxId\": \"<string>\",\n \"url\": \"<string>\",\n \"website\": \"<string>\"\n },\n \"value\": {\n \"max\": 123,\n \"min\": 123\n },\n \"valuePerArea\": {\n \"max\": 123,\n \"min\": 123\n }\n },\n \"scope\": [],\n \"warrantyDeposit\": {\n \"max\": 123,\n \"min\": 123\n },\n \"variation\": []\n },\n \"process\": [],\n \"tags\": [\n \"<string>\"\n ],\n \"type\": [\n \"CLASS_HOUSE\"\n ],\n \"hasAnomaly\": true,\n \"offer\": []\n },\n \"fullTexts\": [\n \"<string>\"\n ],\n \"keywords\": [\n \"<string>\"\n ]\n },\n \"webhook_url\": \"<string>\",\n \"search_name\": \"<string>\",\n \"match\": [\n \"ALERT_MATCH_CREATED\"\n ],\n \"context\": {\n \"metadata\": {}\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fluximmo.io/v2/protected/properties/search/alerts/{alertId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"search_query\": {\n \"filterProperty\": {\n \"adverts\": [],\n \"habitation\": {\n \"bathroomCount\": {\n \"max\": 123,\n \"min\": 123\n },\n \"bedroomCount\": {\n \"max\": 123,\n \"min\": 123\n },\n \"characteristics\": {\n \"hasAlarm\": true,\n \"hasBalcony\": true,\n \"hasCellar\": true,\n \"hasConcierge\": true,\n \"hasDigicode\": true,\n \"hasFireplace\": true,\n \"hasGarage\": true,\n \"hasGarden\": true,\n \"hasGrenier\": true,\n \"hasInterphone\": true,\n \"hasJacuzzi\": true,\n \"hasLand\": true,\n \"hasLift\": true,\n \"hasMezzanine\": true,\n \"hasParking\": true,\n \"hasPool\": true,\n \"hasTerrace\": true,\n \"hasVisAVis\": true,\n \"isPeaceful\": true\n },\n \"climate\": {\n \"epcClimate\": [],\n \"epcClimateScore\": {\n \"max\": 123,\n \"min\": 123\n },\n \"epcEnergy\": [],\n \"epcEnergyScore\": {\n \"max\": 123,\n \"min\": 123\n },\n \"epcClimateDate\": {\n \"max\": \"2022-10-21T11:31:33.593Z\",\n \"min\": \"2022-10-21T11:31:33.593Z\"\n },\n \"epcEnergyDate\": {\n \"max\": \"2022-10-21T11:31:33.593Z\",\n \"min\": \"2022-10-21T11:31:33.593Z\"\n }\n },\n \"features\": {\n \"exposure\": [],\n \"furniture\": [],\n \"propertyFloor\": {\n \"max\": 123,\n \"min\": 123\n },\n \"propertyTotalFloor\": {\n \"max\": 123,\n \"min\": 123\n },\n \"constructionMaterials\": [],\n \"glazingTypes\": [],\n \"hasThroughExposure\": true,\n \"viewOns\": [],\n \"viewTypes\": []\n },\n \"heatTypes\": [],\n \"heatTypeDetails\": [],\n \"heatings\": [],\n \"propertyCondition\": [\n {\n \"constructionYear\": 123,\n \"interiorCondition\": null,\n \"renovationYear\": 123,\n \"generalConditions\": []\n }\n ],\n \"roomCount\": {\n \"max\": 123,\n \"min\": 123\n },\n \"surface\": {\n \"balconies\": {\n \"max\": 123,\n \"min\": 123\n },\n \"floorSpace\": {\n \"max\": 123,\n \"min\": 123\n },\n \"gardens\": {\n \"max\": 123,\n \"min\": 123\n },\n \"groundFloor\": {\n \"max\": 123,\n \"min\": 123\n },\n \"kitchen\": {\n \"max\": 123,\n \"min\": 123\n },\n \"livingSpace\": {\n \"max\": 123,\n \"min\": 123\n },\n \"livingroom\": {\n \"max\": 123,\n \"min\": 123\n },\n \"terraces\": {\n \"max\": 123,\n \"min\": 123\n },\n \"total\": {\n \"max\": 123,\n \"min\": 123\n }\n },\n \"type\": \"PROPERTY_TYPE_T1_T2\",\n \"wcCount\": {\n \"max\": 123,\n \"min\": 123\n }\n },\n \"isUrgent\": true,\n \"land\": {\n \"canConstruct\": true,\n \"isServiced\": true,\n \"surface\": {\n \"max\": 123,\n \"min\": 123\n },\n \"surfaceConstructable\": {\n \"max\": 123,\n \"min\": 123\n },\n \"type\": [],\n \"haveBuildingPermit\": true,\n \"haveElectricity\": true,\n \"haveTelecom\": true,\n \"haveWater\": true\n },\n \"location\": [],\n \"meta\": {\n \"firstSeenAt\": {\n \"max\": \"2022-10-21T11:31:33.593Z\",\n \"min\": \"2022-10-21T11:31:33.593Z\"\n },\n \"isTotallyOffline\": true,\n \"lastPublishedAt\": {\n \"max\": \"2022-10-21T11:31:33.593Z\",\n \"min\": \"2022-10-21T11:31:33.593Z\"\n },\n \"lastSeenAt\": {\n \"max\": \"2022-10-21T11:31:33.593Z\",\n \"min\": \"2022-10-21T11:31:33.593Z\"\n },\n \"lastUpdatedAt\": {\n \"max\": \"2022-10-21T11:31:33.593Z\",\n \"min\": \"2022-10-21T11:31:33.593Z\"\n }\n },\n \"parking\": {\n \"count\": {\n \"max\": 123,\n \"min\": 123\n },\n \"numberOfCars\": {\n \"max\": 123,\n \"min\": 123\n },\n \"surface\": {\n \"max\": 123,\n \"min\": 123\n },\n \"type\": []\n },\n \"price\": {\n \"currency\": [],\n \"initial\": {\n \"source\": {\n \"flxId\": \"<string>\",\n \"url\": \"<string>\",\n \"website\": \"<string>\"\n },\n \"value\": {\n \"max\": 123,\n \"min\": 123\n },\n \"valuePerArea\": {\n \"max\": 123,\n \"min\": 123\n }\n },\n \"isAuction\": true,\n \"latest\": {\n \"source\": {\n \"flxId\": \"<string>\",\n \"url\": \"<string>\",\n \"website\": \"<string>\"\n },\n \"value\": {\n \"max\": 123,\n \"min\": 123\n },\n \"valuePerArea\": {\n \"max\": 123,\n \"min\": 123\n }\n },\n \"scope\": [],\n \"warrantyDeposit\": {\n \"max\": 123,\n \"min\": 123\n },\n \"variation\": []\n },\n \"process\": [],\n \"tags\": [\n \"<string>\"\n ],\n \"type\": [\n \"CLASS_HOUSE\"\n ],\n \"hasAnomaly\": true,\n \"offer\": []\n },\n \"fullTexts\": [\n \"<string>\"\n ],\n \"keywords\": [\n \"<string>\"\n ]\n },\n \"webhook_url\": \"<string>\",\n \"search_name\": \"<string>\",\n \"match\": [\n \"ALERT_MATCH_CREATED\"\n ],\n \"context\": {\n \"metadata\": {}\n }\n}"
response = http.request(request)
puts response.read_body{
"data": {
"alert_id": "<string>"
}
}{
"error": {
"message": "<string>",
"code": 123
}
}{
"error": {
"message": "<string>",
"code": 123
}
}Alertes
Modifier une alerte properties
Modifier les filtres d’une alerte sans perdre l’historique des matches.
Update the search criteria of a Property alert
curl --request PATCH \
--url https://api.fluximmo.io/v2/protected/properties/search/alerts/{alertId} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"search_query": {
"filterProperty": {
"adverts": [],
"habitation": {
"bathroomCount": {
"max": 123,
"min": 123
},
"bedroomCount": {
"max": 123,
"min": 123
},
"characteristics": {
"hasAlarm": true,
"hasBalcony": true,
"hasCellar": true,
"hasConcierge": true,
"hasDigicode": true,
"hasFireplace": true,
"hasGarage": true,
"hasGarden": true,
"hasGrenier": true,
"hasInterphone": true,
"hasJacuzzi": true,
"hasLand": true,
"hasLift": true,
"hasMezzanine": true,
"hasParking": true,
"hasPool": true,
"hasTerrace": true,
"hasVisAVis": true,
"isPeaceful": true
},
"climate": {
"epcClimate": [],
"epcClimateScore": {
"max": 123,
"min": 123
},
"epcEnergy": [],
"epcEnergyScore": {
"max": 123,
"min": 123
},
"epcClimateDate": {
"max": "2022-10-21T11:31:33.593Z",
"min": "2022-10-21T11:31:33.593Z"
},
"epcEnergyDate": {
"max": "2022-10-21T11:31:33.593Z",
"min": "2022-10-21T11:31:33.593Z"
}
},
"features": {
"exposure": [],
"furniture": [],
"propertyFloor": {
"max": 123,
"min": 123
},
"propertyTotalFloor": {
"max": 123,
"min": 123
},
"constructionMaterials": [],
"glazingTypes": [],
"hasThroughExposure": true,
"viewOns": [],
"viewTypes": []
},
"heatTypes": [],
"heatTypeDetails": [],
"heatings": [],
"propertyCondition": [
{
"constructionYear": 123,
"interiorCondition": null,
"renovationYear": 123,
"generalConditions": []
}
],
"roomCount": {
"max": 123,
"min": 123
},
"surface": {
"balconies": {
"max": 123,
"min": 123
},
"floorSpace": {
"max": 123,
"min": 123
},
"gardens": {
"max": 123,
"min": 123
},
"groundFloor": {
"max": 123,
"min": 123
},
"kitchen": {
"max": 123,
"min": 123
},
"livingSpace": {
"max": 123,
"min": 123
},
"livingroom": {
"max": 123,
"min": 123
},
"terraces": {
"max": 123,
"min": 123
},
"total": {
"max": 123,
"min": 123
}
},
"type": "PROPERTY_TYPE_T1_T2",
"wcCount": {
"max": 123,
"min": 123
}
},
"isUrgent": true,
"land": {
"canConstruct": true,
"isServiced": true,
"surface": {
"max": 123,
"min": 123
},
"surfaceConstructable": {
"max": 123,
"min": 123
},
"type": [],
"haveBuildingPermit": true,
"haveElectricity": true,
"haveTelecom": true,
"haveWater": true
},
"location": [],
"meta": {
"firstSeenAt": {
"max": "2022-10-21T11:31:33.593Z",
"min": "2022-10-21T11:31:33.593Z"
},
"isTotallyOffline": true,
"lastPublishedAt": {
"max": "2022-10-21T11:31:33.593Z",
"min": "2022-10-21T11:31:33.593Z"
},
"lastSeenAt": {
"max": "2022-10-21T11:31:33.593Z",
"min": "2022-10-21T11:31:33.593Z"
},
"lastUpdatedAt": {
"max": "2022-10-21T11:31:33.593Z",
"min": "2022-10-21T11:31:33.593Z"
}
},
"parking": {
"count": {
"max": 123,
"min": 123
},
"numberOfCars": {
"max": 123,
"min": 123
},
"surface": {
"max": 123,
"min": 123
},
"type": []
},
"price": {
"currency": [],
"initial": {
"source": {
"flxId": "<string>",
"url": "<string>",
"website": "<string>"
},
"value": {
"max": 123,
"min": 123
},
"valuePerArea": {
"max": 123,
"min": 123
}
},
"isAuction": true,
"latest": {
"source": {
"flxId": "<string>",
"url": "<string>",
"website": "<string>"
},
"value": {
"max": 123,
"min": 123
},
"valuePerArea": {
"max": 123,
"min": 123
}
},
"scope": [],
"warrantyDeposit": {
"max": 123,
"min": 123
},
"variation": []
},
"process": [],
"tags": [
"<string>"
],
"type": [
"CLASS_HOUSE"
],
"hasAnomaly": true,
"offer": []
},
"fullTexts": [
"<string>"
],
"keywords": [
"<string>"
]
},
"webhook_url": "<string>",
"search_name": "<string>",
"match": [
"ALERT_MATCH_CREATED"
],
"context": {
"metadata": {}
}
}
'import requests
url = "https://api.fluximmo.io/v2/protected/properties/search/alerts/{alertId}"
payload = {
"search_query": {
"filterProperty": {
"adverts": [],
"habitation": {
"bathroomCount": {
"max": 123,
"min": 123
},
"bedroomCount": {
"max": 123,
"min": 123
},
"characteristics": {
"hasAlarm": True,
"hasBalcony": True,
"hasCellar": True,
"hasConcierge": True,
"hasDigicode": True,
"hasFireplace": True,
"hasGarage": True,
"hasGarden": True,
"hasGrenier": True,
"hasInterphone": True,
"hasJacuzzi": True,
"hasLand": True,
"hasLift": True,
"hasMezzanine": True,
"hasParking": True,
"hasPool": True,
"hasTerrace": True,
"hasVisAVis": True,
"isPeaceful": True
},
"climate": {
"epcClimate": [],
"epcClimateScore": {
"max": 123,
"min": 123
},
"epcEnergy": [],
"epcEnergyScore": {
"max": 123,
"min": 123
},
"epcClimateDate": {
"max": "2022-10-21T11:31:33.593Z",
"min": "2022-10-21T11:31:33.593Z"
},
"epcEnergyDate": {
"max": "2022-10-21T11:31:33.593Z",
"min": "2022-10-21T11:31:33.593Z"
}
},
"features": {
"exposure": [],
"furniture": [],
"propertyFloor": {
"max": 123,
"min": 123
},
"propertyTotalFloor": {
"max": 123,
"min": 123
},
"constructionMaterials": [],
"glazingTypes": [],
"hasThroughExposure": True,
"viewOns": [],
"viewTypes": []
},
"heatTypes": [],
"heatTypeDetails": [],
"heatings": [],
"propertyCondition": [
{
"constructionYear": 123,
"interiorCondition": None,
"renovationYear": 123,
"generalConditions": []
}
],
"roomCount": {
"max": 123,
"min": 123
},
"surface": {
"balconies": {
"max": 123,
"min": 123
},
"floorSpace": {
"max": 123,
"min": 123
},
"gardens": {
"max": 123,
"min": 123
},
"groundFloor": {
"max": 123,
"min": 123
},
"kitchen": {
"max": 123,
"min": 123
},
"livingSpace": {
"max": 123,
"min": 123
},
"livingroom": {
"max": 123,
"min": 123
},
"terraces": {
"max": 123,
"min": 123
},
"total": {
"max": 123,
"min": 123
}
},
"type": "PROPERTY_TYPE_T1_T2",
"wcCount": {
"max": 123,
"min": 123
}
},
"isUrgent": True,
"land": {
"canConstruct": True,
"isServiced": True,
"surface": {
"max": 123,
"min": 123
},
"surfaceConstructable": {
"max": 123,
"min": 123
},
"type": [],
"haveBuildingPermit": True,
"haveElectricity": True,
"haveTelecom": True,
"haveWater": True
},
"location": [],
"meta": {
"firstSeenAt": {
"max": "2022-10-21T11:31:33.593Z",
"min": "2022-10-21T11:31:33.593Z"
},
"isTotallyOffline": True,
"lastPublishedAt": {
"max": "2022-10-21T11:31:33.593Z",
"min": "2022-10-21T11:31:33.593Z"
},
"lastSeenAt": {
"max": "2022-10-21T11:31:33.593Z",
"min": "2022-10-21T11:31:33.593Z"
},
"lastUpdatedAt": {
"max": "2022-10-21T11:31:33.593Z",
"min": "2022-10-21T11:31:33.593Z"
}
},
"parking": {
"count": {
"max": 123,
"min": 123
},
"numberOfCars": {
"max": 123,
"min": 123
},
"surface": {
"max": 123,
"min": 123
},
"type": []
},
"price": {
"currency": [],
"initial": {
"source": {
"flxId": "<string>",
"url": "<string>",
"website": "<string>"
},
"value": {
"max": 123,
"min": 123
},
"valuePerArea": {
"max": 123,
"min": 123
}
},
"isAuction": True,
"latest": {
"source": {
"flxId": "<string>",
"url": "<string>",
"website": "<string>"
},
"value": {
"max": 123,
"min": 123
},
"valuePerArea": {
"max": 123,
"min": 123
}
},
"scope": [],
"warrantyDeposit": {
"max": 123,
"min": 123
},
"variation": []
},
"process": [],
"tags": ["<string>"],
"type": ["CLASS_HOUSE"],
"hasAnomaly": True,
"offer": []
},
"fullTexts": ["<string>"],
"keywords": ["<string>"]
},
"webhook_url": "<string>",
"search_name": "<string>",
"match": ["ALERT_MATCH_CREATED"],
"context": { "metadata": {} }
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
search_query: {
filterProperty: {
adverts: [],
habitation: {
bathroomCount: {max: 123, min: 123},
bedroomCount: {max: 123, min: 123},
characteristics: {
hasAlarm: true,
hasBalcony: true,
hasCellar: true,
hasConcierge: true,
hasDigicode: true,
hasFireplace: true,
hasGarage: true,
hasGarden: true,
hasGrenier: true,
hasInterphone: true,
hasJacuzzi: true,
hasLand: true,
hasLift: true,
hasMezzanine: true,
hasParking: true,
hasPool: true,
hasTerrace: true,
hasVisAVis: true,
isPeaceful: true
},
climate: {
epcClimate: [],
epcClimateScore: {max: 123, min: 123},
epcEnergy: [],
epcEnergyScore: {max: 123, min: 123},
epcClimateDate: {max: '2022-10-21T11:31:33.593Z', min: '2022-10-21T11:31:33.593Z'},
epcEnergyDate: {max: '2022-10-21T11:31:33.593Z', min: '2022-10-21T11:31:33.593Z'}
},
features: {
exposure: [],
furniture: [],
propertyFloor: {max: 123, min: 123},
propertyTotalFloor: {max: 123, min: 123},
constructionMaterials: [],
glazingTypes: [],
hasThroughExposure: true,
viewOns: [],
viewTypes: []
},
heatTypes: [],
heatTypeDetails: [],
heatings: [],
propertyCondition: [
{
constructionYear: 123,
interiorCondition: null,
renovationYear: 123,
generalConditions: []
}
],
roomCount: {max: 123, min: 123},
surface: {
balconies: {max: 123, min: 123},
floorSpace: {max: 123, min: 123},
gardens: {max: 123, min: 123},
groundFloor: {max: 123, min: 123},
kitchen: {max: 123, min: 123},
livingSpace: {max: 123, min: 123},
livingroom: {max: 123, min: 123},
terraces: {max: 123, min: 123},
total: {max: 123, min: 123}
},
type: 'PROPERTY_TYPE_T1_T2',
wcCount: {max: 123, min: 123}
},
isUrgent: true,
land: {
canConstruct: true,
isServiced: true,
surface: {max: 123, min: 123},
surfaceConstructable: {max: 123, min: 123},
type: [],
haveBuildingPermit: true,
haveElectricity: true,
haveTelecom: true,
haveWater: true
},
location: [],
meta: {
firstSeenAt: {max: '2022-10-21T11:31:33.593Z', min: '2022-10-21T11:31:33.593Z'},
isTotallyOffline: true,
lastPublishedAt: {max: '2022-10-21T11:31:33.593Z', min: '2022-10-21T11:31:33.593Z'},
lastSeenAt: {max: '2022-10-21T11:31:33.593Z', min: '2022-10-21T11:31:33.593Z'},
lastUpdatedAt: {max: '2022-10-21T11:31:33.593Z', min: '2022-10-21T11:31:33.593Z'}
},
parking: {
count: {max: 123, min: 123},
numberOfCars: {max: 123, min: 123},
surface: {max: 123, min: 123},
type: []
},
price: {
currency: [],
initial: {
source: {flxId: '<string>', url: '<string>', website: '<string>'},
value: {max: 123, min: 123},
valuePerArea: {max: 123, min: 123}
},
isAuction: true,
latest: {
source: {flxId: '<string>', url: '<string>', website: '<string>'},
value: {max: 123, min: 123},
valuePerArea: {max: 123, min: 123}
},
scope: [],
warrantyDeposit: {max: 123, min: 123},
variation: []
},
process: [],
tags: ['<string>'],
type: ['CLASS_HOUSE'],
hasAnomaly: true,
offer: []
},
fullTexts: ['<string>'],
keywords: ['<string>']
},
webhook_url: '<string>',
search_name: '<string>',
match: ['ALERT_MATCH_CREATED'],
context: {metadata: {}}
})
};
fetch('https://api.fluximmo.io/v2/protected/properties/search/alerts/{alertId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.fluximmo.io/v2/protected/properties/search/alerts/{alertId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'search_query' => [
'filterProperty' => [
'adverts' => [
],
'habitation' => [
'bathroomCount' => [
'max' => 123,
'min' => 123
],
'bedroomCount' => [
'max' => 123,
'min' => 123
],
'characteristics' => [
'hasAlarm' => true,
'hasBalcony' => true,
'hasCellar' => true,
'hasConcierge' => true,
'hasDigicode' => true,
'hasFireplace' => true,
'hasGarage' => true,
'hasGarden' => true,
'hasGrenier' => true,
'hasInterphone' => true,
'hasJacuzzi' => true,
'hasLand' => true,
'hasLift' => true,
'hasMezzanine' => true,
'hasParking' => true,
'hasPool' => true,
'hasTerrace' => true,
'hasVisAVis' => true,
'isPeaceful' => true
],
'climate' => [
'epcClimate' => [
],
'epcClimateScore' => [
'max' => 123,
'min' => 123
],
'epcEnergy' => [
],
'epcEnergyScore' => [
'max' => 123,
'min' => 123
],
'epcClimateDate' => [
'max' => '2022-10-21T11:31:33.593Z',
'min' => '2022-10-21T11:31:33.593Z'
],
'epcEnergyDate' => [
'max' => '2022-10-21T11:31:33.593Z',
'min' => '2022-10-21T11:31:33.593Z'
]
],
'features' => [
'exposure' => [
],
'furniture' => [
],
'propertyFloor' => [
'max' => 123,
'min' => 123
],
'propertyTotalFloor' => [
'max' => 123,
'min' => 123
],
'constructionMaterials' => [
],
'glazingTypes' => [
],
'hasThroughExposure' => true,
'viewOns' => [
],
'viewTypes' => [
]
],
'heatTypes' => [
],
'heatTypeDetails' => [
],
'heatings' => [
],
'propertyCondition' => [
[
'constructionYear' => 123,
'interiorCondition' => null,
'renovationYear' => 123,
'generalConditions' => [
]
]
],
'roomCount' => [
'max' => 123,
'min' => 123
],
'surface' => [
'balconies' => [
'max' => 123,
'min' => 123
],
'floorSpace' => [
'max' => 123,
'min' => 123
],
'gardens' => [
'max' => 123,
'min' => 123
],
'groundFloor' => [
'max' => 123,
'min' => 123
],
'kitchen' => [
'max' => 123,
'min' => 123
],
'livingSpace' => [
'max' => 123,
'min' => 123
],
'livingroom' => [
'max' => 123,
'min' => 123
],
'terraces' => [
'max' => 123,
'min' => 123
],
'total' => [
'max' => 123,
'min' => 123
]
],
'type' => 'PROPERTY_TYPE_T1_T2',
'wcCount' => [
'max' => 123,
'min' => 123
]
],
'isUrgent' => true,
'land' => [
'canConstruct' => true,
'isServiced' => true,
'surface' => [
'max' => 123,
'min' => 123
],
'surfaceConstructable' => [
'max' => 123,
'min' => 123
],
'type' => [
],
'haveBuildingPermit' => true,
'haveElectricity' => true,
'haveTelecom' => true,
'haveWater' => true
],
'location' => [
],
'meta' => [
'firstSeenAt' => [
'max' => '2022-10-21T11:31:33.593Z',
'min' => '2022-10-21T11:31:33.593Z'
],
'isTotallyOffline' => true,
'lastPublishedAt' => [
'max' => '2022-10-21T11:31:33.593Z',
'min' => '2022-10-21T11:31:33.593Z'
],
'lastSeenAt' => [
'max' => '2022-10-21T11:31:33.593Z',
'min' => '2022-10-21T11:31:33.593Z'
],
'lastUpdatedAt' => [
'max' => '2022-10-21T11:31:33.593Z',
'min' => '2022-10-21T11:31:33.593Z'
]
],
'parking' => [
'count' => [
'max' => 123,
'min' => 123
],
'numberOfCars' => [
'max' => 123,
'min' => 123
],
'surface' => [
'max' => 123,
'min' => 123
],
'type' => [
]
],
'price' => [
'currency' => [
],
'initial' => [
'source' => [
'flxId' => '<string>',
'url' => '<string>',
'website' => '<string>'
],
'value' => [
'max' => 123,
'min' => 123
],
'valuePerArea' => [
'max' => 123,
'min' => 123
]
],
'isAuction' => true,
'latest' => [
'source' => [
'flxId' => '<string>',
'url' => '<string>',
'website' => '<string>'
],
'value' => [
'max' => 123,
'min' => 123
],
'valuePerArea' => [
'max' => 123,
'min' => 123
]
],
'scope' => [
],
'warrantyDeposit' => [
'max' => 123,
'min' => 123
],
'variation' => [
]
],
'process' => [
],
'tags' => [
'<string>'
],
'type' => [
'CLASS_HOUSE'
],
'hasAnomaly' => true,
'offer' => [
]
],
'fullTexts' => [
'<string>'
],
'keywords' => [
'<string>'
]
],
'webhook_url' => '<string>',
'search_name' => '<string>',
'match' => [
'ALERT_MATCH_CREATED'
],
'context' => [
'metadata' => [
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.fluximmo.io/v2/protected/properties/search/alerts/{alertId}"
payload := strings.NewReader("{\n \"search_query\": {\n \"filterProperty\": {\n \"adverts\": [],\n \"habitation\": {\n \"bathroomCount\": {\n \"max\": 123,\n \"min\": 123\n },\n \"bedroomCount\": {\n \"max\": 123,\n \"min\": 123\n },\n \"characteristics\": {\n \"hasAlarm\": true,\n \"hasBalcony\": true,\n \"hasCellar\": true,\n \"hasConcierge\": true,\n \"hasDigicode\": true,\n \"hasFireplace\": true,\n \"hasGarage\": true,\n \"hasGarden\": true,\n \"hasGrenier\": true,\n \"hasInterphone\": true,\n \"hasJacuzzi\": true,\n \"hasLand\": true,\n \"hasLift\": true,\n \"hasMezzanine\": true,\n \"hasParking\": true,\n \"hasPool\": true,\n \"hasTerrace\": true,\n \"hasVisAVis\": true,\n \"isPeaceful\": true\n },\n \"climate\": {\n \"epcClimate\": [],\n \"epcClimateScore\": {\n \"max\": 123,\n \"min\": 123\n },\n \"epcEnergy\": [],\n \"epcEnergyScore\": {\n \"max\": 123,\n \"min\": 123\n },\n \"epcClimateDate\": {\n \"max\": \"2022-10-21T11:31:33.593Z\",\n \"min\": \"2022-10-21T11:31:33.593Z\"\n },\n \"epcEnergyDate\": {\n \"max\": \"2022-10-21T11:31:33.593Z\",\n \"min\": \"2022-10-21T11:31:33.593Z\"\n }\n },\n \"features\": {\n \"exposure\": [],\n \"furniture\": [],\n \"propertyFloor\": {\n \"max\": 123,\n \"min\": 123\n },\n \"propertyTotalFloor\": {\n \"max\": 123,\n \"min\": 123\n },\n \"constructionMaterials\": [],\n \"glazingTypes\": [],\n \"hasThroughExposure\": true,\n \"viewOns\": [],\n \"viewTypes\": []\n },\n \"heatTypes\": [],\n \"heatTypeDetails\": [],\n \"heatings\": [],\n \"propertyCondition\": [\n {\n \"constructionYear\": 123,\n \"interiorCondition\": null,\n \"renovationYear\": 123,\n \"generalConditions\": []\n }\n ],\n \"roomCount\": {\n \"max\": 123,\n \"min\": 123\n },\n \"surface\": {\n \"balconies\": {\n \"max\": 123,\n \"min\": 123\n },\n \"floorSpace\": {\n \"max\": 123,\n \"min\": 123\n },\n \"gardens\": {\n \"max\": 123,\n \"min\": 123\n },\n \"groundFloor\": {\n \"max\": 123,\n \"min\": 123\n },\n \"kitchen\": {\n \"max\": 123,\n \"min\": 123\n },\n \"livingSpace\": {\n \"max\": 123,\n \"min\": 123\n },\n \"livingroom\": {\n \"max\": 123,\n \"min\": 123\n },\n \"terraces\": {\n \"max\": 123,\n \"min\": 123\n },\n \"total\": {\n \"max\": 123,\n \"min\": 123\n }\n },\n \"type\": \"PROPERTY_TYPE_T1_T2\",\n \"wcCount\": {\n \"max\": 123,\n \"min\": 123\n }\n },\n \"isUrgent\": true,\n \"land\": {\n \"canConstruct\": true,\n \"isServiced\": true,\n \"surface\": {\n \"max\": 123,\n \"min\": 123\n },\n \"surfaceConstructable\": {\n \"max\": 123,\n \"min\": 123\n },\n \"type\": [],\n \"haveBuildingPermit\": true,\n \"haveElectricity\": true,\n \"haveTelecom\": true,\n \"haveWater\": true\n },\n \"location\": [],\n \"meta\": {\n \"firstSeenAt\": {\n \"max\": \"2022-10-21T11:31:33.593Z\",\n \"min\": \"2022-10-21T11:31:33.593Z\"\n },\n \"isTotallyOffline\": true,\n \"lastPublishedAt\": {\n \"max\": \"2022-10-21T11:31:33.593Z\",\n \"min\": \"2022-10-21T11:31:33.593Z\"\n },\n \"lastSeenAt\": {\n \"max\": \"2022-10-21T11:31:33.593Z\",\n \"min\": \"2022-10-21T11:31:33.593Z\"\n },\n \"lastUpdatedAt\": {\n \"max\": \"2022-10-21T11:31:33.593Z\",\n \"min\": \"2022-10-21T11:31:33.593Z\"\n }\n },\n \"parking\": {\n \"count\": {\n \"max\": 123,\n \"min\": 123\n },\n \"numberOfCars\": {\n \"max\": 123,\n \"min\": 123\n },\n \"surface\": {\n \"max\": 123,\n \"min\": 123\n },\n \"type\": []\n },\n \"price\": {\n \"currency\": [],\n \"initial\": {\n \"source\": {\n \"flxId\": \"<string>\",\n \"url\": \"<string>\",\n \"website\": \"<string>\"\n },\n \"value\": {\n \"max\": 123,\n \"min\": 123\n },\n \"valuePerArea\": {\n \"max\": 123,\n \"min\": 123\n }\n },\n \"isAuction\": true,\n \"latest\": {\n \"source\": {\n \"flxId\": \"<string>\",\n \"url\": \"<string>\",\n \"website\": \"<string>\"\n },\n \"value\": {\n \"max\": 123,\n \"min\": 123\n },\n \"valuePerArea\": {\n \"max\": 123,\n \"min\": 123\n }\n },\n \"scope\": [],\n \"warrantyDeposit\": {\n \"max\": 123,\n \"min\": 123\n },\n \"variation\": []\n },\n \"process\": [],\n \"tags\": [\n \"<string>\"\n ],\n \"type\": [\n \"CLASS_HOUSE\"\n ],\n \"hasAnomaly\": true,\n \"offer\": []\n },\n \"fullTexts\": [\n \"<string>\"\n ],\n \"keywords\": [\n \"<string>\"\n ]\n },\n \"webhook_url\": \"<string>\",\n \"search_name\": \"<string>\",\n \"match\": [\n \"ALERT_MATCH_CREATED\"\n ],\n \"context\": {\n \"metadata\": {}\n }\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.fluximmo.io/v2/protected/properties/search/alerts/{alertId}")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"search_query\": {\n \"filterProperty\": {\n \"adverts\": [],\n \"habitation\": {\n \"bathroomCount\": {\n \"max\": 123,\n \"min\": 123\n },\n \"bedroomCount\": {\n \"max\": 123,\n \"min\": 123\n },\n \"characteristics\": {\n \"hasAlarm\": true,\n \"hasBalcony\": true,\n \"hasCellar\": true,\n \"hasConcierge\": true,\n \"hasDigicode\": true,\n \"hasFireplace\": true,\n \"hasGarage\": true,\n \"hasGarden\": true,\n \"hasGrenier\": true,\n \"hasInterphone\": true,\n \"hasJacuzzi\": true,\n \"hasLand\": true,\n \"hasLift\": true,\n \"hasMezzanine\": true,\n \"hasParking\": true,\n \"hasPool\": true,\n \"hasTerrace\": true,\n \"hasVisAVis\": true,\n \"isPeaceful\": true\n },\n \"climate\": {\n \"epcClimate\": [],\n \"epcClimateScore\": {\n \"max\": 123,\n \"min\": 123\n },\n \"epcEnergy\": [],\n \"epcEnergyScore\": {\n \"max\": 123,\n \"min\": 123\n },\n \"epcClimateDate\": {\n \"max\": \"2022-10-21T11:31:33.593Z\",\n \"min\": \"2022-10-21T11:31:33.593Z\"\n },\n \"epcEnergyDate\": {\n \"max\": \"2022-10-21T11:31:33.593Z\",\n \"min\": \"2022-10-21T11:31:33.593Z\"\n }\n },\n \"features\": {\n \"exposure\": [],\n \"furniture\": [],\n \"propertyFloor\": {\n \"max\": 123,\n \"min\": 123\n },\n \"propertyTotalFloor\": {\n \"max\": 123,\n \"min\": 123\n },\n \"constructionMaterials\": [],\n \"glazingTypes\": [],\n \"hasThroughExposure\": true,\n \"viewOns\": [],\n \"viewTypes\": []\n },\n \"heatTypes\": [],\n \"heatTypeDetails\": [],\n \"heatings\": [],\n \"propertyCondition\": [\n {\n \"constructionYear\": 123,\n \"interiorCondition\": null,\n \"renovationYear\": 123,\n \"generalConditions\": []\n }\n ],\n \"roomCount\": {\n \"max\": 123,\n \"min\": 123\n },\n \"surface\": {\n \"balconies\": {\n \"max\": 123,\n \"min\": 123\n },\n \"floorSpace\": {\n \"max\": 123,\n \"min\": 123\n },\n \"gardens\": {\n \"max\": 123,\n \"min\": 123\n },\n \"groundFloor\": {\n \"max\": 123,\n \"min\": 123\n },\n \"kitchen\": {\n \"max\": 123,\n \"min\": 123\n },\n \"livingSpace\": {\n \"max\": 123,\n \"min\": 123\n },\n \"livingroom\": {\n \"max\": 123,\n \"min\": 123\n },\n \"terraces\": {\n \"max\": 123,\n \"min\": 123\n },\n \"total\": {\n \"max\": 123,\n \"min\": 123\n }\n },\n \"type\": \"PROPERTY_TYPE_T1_T2\",\n \"wcCount\": {\n \"max\": 123,\n \"min\": 123\n }\n },\n \"isUrgent\": true,\n \"land\": {\n \"canConstruct\": true,\n \"isServiced\": true,\n \"surface\": {\n \"max\": 123,\n \"min\": 123\n },\n \"surfaceConstructable\": {\n \"max\": 123,\n \"min\": 123\n },\n \"type\": [],\n \"haveBuildingPermit\": true,\n \"haveElectricity\": true,\n \"haveTelecom\": true,\n \"haveWater\": true\n },\n \"location\": [],\n \"meta\": {\n \"firstSeenAt\": {\n \"max\": \"2022-10-21T11:31:33.593Z\",\n \"min\": \"2022-10-21T11:31:33.593Z\"\n },\n \"isTotallyOffline\": true,\n \"lastPublishedAt\": {\n \"max\": \"2022-10-21T11:31:33.593Z\",\n \"min\": \"2022-10-21T11:31:33.593Z\"\n },\n \"lastSeenAt\": {\n \"max\": \"2022-10-21T11:31:33.593Z\",\n \"min\": \"2022-10-21T11:31:33.593Z\"\n },\n \"lastUpdatedAt\": {\n \"max\": \"2022-10-21T11:31:33.593Z\",\n \"min\": \"2022-10-21T11:31:33.593Z\"\n }\n },\n \"parking\": {\n \"count\": {\n \"max\": 123,\n \"min\": 123\n },\n \"numberOfCars\": {\n \"max\": 123,\n \"min\": 123\n },\n \"surface\": {\n \"max\": 123,\n \"min\": 123\n },\n \"type\": []\n },\n \"price\": {\n \"currency\": [],\n \"initial\": {\n \"source\": {\n \"flxId\": \"<string>\",\n \"url\": \"<string>\",\n \"website\": \"<string>\"\n },\n \"value\": {\n \"max\": 123,\n \"min\": 123\n },\n \"valuePerArea\": {\n \"max\": 123,\n \"min\": 123\n }\n },\n \"isAuction\": true,\n \"latest\": {\n \"source\": {\n \"flxId\": \"<string>\",\n \"url\": \"<string>\",\n \"website\": \"<string>\"\n },\n \"value\": {\n \"max\": 123,\n \"min\": 123\n },\n \"valuePerArea\": {\n \"max\": 123,\n \"min\": 123\n }\n },\n \"scope\": [],\n \"warrantyDeposit\": {\n \"max\": 123,\n \"min\": 123\n },\n \"variation\": []\n },\n \"process\": [],\n \"tags\": [\n \"<string>\"\n ],\n \"type\": [\n \"CLASS_HOUSE\"\n ],\n \"hasAnomaly\": true,\n \"offer\": []\n },\n \"fullTexts\": [\n \"<string>\"\n ],\n \"keywords\": [\n \"<string>\"\n ]\n },\n \"webhook_url\": \"<string>\",\n \"search_name\": \"<string>\",\n \"match\": [\n \"ALERT_MATCH_CREATED\"\n ],\n \"context\": {\n \"metadata\": {}\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fluximmo.io/v2/protected/properties/search/alerts/{alertId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"search_query\": {\n \"filterProperty\": {\n \"adverts\": [],\n \"habitation\": {\n \"bathroomCount\": {\n \"max\": 123,\n \"min\": 123\n },\n \"bedroomCount\": {\n \"max\": 123,\n \"min\": 123\n },\n \"characteristics\": {\n \"hasAlarm\": true,\n \"hasBalcony\": true,\n \"hasCellar\": true,\n \"hasConcierge\": true,\n \"hasDigicode\": true,\n \"hasFireplace\": true,\n \"hasGarage\": true,\n \"hasGarden\": true,\n \"hasGrenier\": true,\n \"hasInterphone\": true,\n \"hasJacuzzi\": true,\n \"hasLand\": true,\n \"hasLift\": true,\n \"hasMezzanine\": true,\n \"hasParking\": true,\n \"hasPool\": true,\n \"hasTerrace\": true,\n \"hasVisAVis\": true,\n \"isPeaceful\": true\n },\n \"climate\": {\n \"epcClimate\": [],\n \"epcClimateScore\": {\n \"max\": 123,\n \"min\": 123\n },\n \"epcEnergy\": [],\n \"epcEnergyScore\": {\n \"max\": 123,\n \"min\": 123\n },\n \"epcClimateDate\": {\n \"max\": \"2022-10-21T11:31:33.593Z\",\n \"min\": \"2022-10-21T11:31:33.593Z\"\n },\n \"epcEnergyDate\": {\n \"max\": \"2022-10-21T11:31:33.593Z\",\n \"min\": \"2022-10-21T11:31:33.593Z\"\n }\n },\n \"features\": {\n \"exposure\": [],\n \"furniture\": [],\n \"propertyFloor\": {\n \"max\": 123,\n \"min\": 123\n },\n \"propertyTotalFloor\": {\n \"max\": 123,\n \"min\": 123\n },\n \"constructionMaterials\": [],\n \"glazingTypes\": [],\n \"hasThroughExposure\": true,\n \"viewOns\": [],\n \"viewTypes\": []\n },\n \"heatTypes\": [],\n \"heatTypeDetails\": [],\n \"heatings\": [],\n \"propertyCondition\": [\n {\n \"constructionYear\": 123,\n \"interiorCondition\": null,\n \"renovationYear\": 123,\n \"generalConditions\": []\n }\n ],\n \"roomCount\": {\n \"max\": 123,\n \"min\": 123\n },\n \"surface\": {\n \"balconies\": {\n \"max\": 123,\n \"min\": 123\n },\n \"floorSpace\": {\n \"max\": 123,\n \"min\": 123\n },\n \"gardens\": {\n \"max\": 123,\n \"min\": 123\n },\n \"groundFloor\": {\n \"max\": 123,\n \"min\": 123\n },\n \"kitchen\": {\n \"max\": 123,\n \"min\": 123\n },\n \"livingSpace\": {\n \"max\": 123,\n \"min\": 123\n },\n \"livingroom\": {\n \"max\": 123,\n \"min\": 123\n },\n \"terraces\": {\n \"max\": 123,\n \"min\": 123\n },\n \"total\": {\n \"max\": 123,\n \"min\": 123\n }\n },\n \"type\": \"PROPERTY_TYPE_T1_T2\",\n \"wcCount\": {\n \"max\": 123,\n \"min\": 123\n }\n },\n \"isUrgent\": true,\n \"land\": {\n \"canConstruct\": true,\n \"isServiced\": true,\n \"surface\": {\n \"max\": 123,\n \"min\": 123\n },\n \"surfaceConstructable\": {\n \"max\": 123,\n \"min\": 123\n },\n \"type\": [],\n \"haveBuildingPermit\": true,\n \"haveElectricity\": true,\n \"haveTelecom\": true,\n \"haveWater\": true\n },\n \"location\": [],\n \"meta\": {\n \"firstSeenAt\": {\n \"max\": \"2022-10-21T11:31:33.593Z\",\n \"min\": \"2022-10-21T11:31:33.593Z\"\n },\n \"isTotallyOffline\": true,\n \"lastPublishedAt\": {\n \"max\": \"2022-10-21T11:31:33.593Z\",\n \"min\": \"2022-10-21T11:31:33.593Z\"\n },\n \"lastSeenAt\": {\n \"max\": \"2022-10-21T11:31:33.593Z\",\n \"min\": \"2022-10-21T11:31:33.593Z\"\n },\n \"lastUpdatedAt\": {\n \"max\": \"2022-10-21T11:31:33.593Z\",\n \"min\": \"2022-10-21T11:31:33.593Z\"\n }\n },\n \"parking\": {\n \"count\": {\n \"max\": 123,\n \"min\": 123\n },\n \"numberOfCars\": {\n \"max\": 123,\n \"min\": 123\n },\n \"surface\": {\n \"max\": 123,\n \"min\": 123\n },\n \"type\": []\n },\n \"price\": {\n \"currency\": [],\n \"initial\": {\n \"source\": {\n \"flxId\": \"<string>\",\n \"url\": \"<string>\",\n \"website\": \"<string>\"\n },\n \"value\": {\n \"max\": 123,\n \"min\": 123\n },\n \"valuePerArea\": {\n \"max\": 123,\n \"min\": 123\n }\n },\n \"isAuction\": true,\n \"latest\": {\n \"source\": {\n \"flxId\": \"<string>\",\n \"url\": \"<string>\",\n \"website\": \"<string>\"\n },\n \"value\": {\n \"max\": 123,\n \"min\": 123\n },\n \"valuePerArea\": {\n \"max\": 123,\n \"min\": 123\n }\n },\n \"scope\": [],\n \"warrantyDeposit\": {\n \"max\": 123,\n \"min\": 123\n },\n \"variation\": []\n },\n \"process\": [],\n \"tags\": [\n \"<string>\"\n ],\n \"type\": [\n \"CLASS_HOUSE\"\n ],\n \"hasAnomaly\": true,\n \"offer\": []\n },\n \"fullTexts\": [\n \"<string>\"\n ],\n \"keywords\": [\n \"<string>\"\n ]\n },\n \"webhook_url\": \"<string>\",\n \"search_name\": \"<string>\",\n \"match\": [\n \"ALERT_MATCH_CREATED\"\n ],\n \"context\": {\n \"metadata\": {}\n }\n}"
response = http.request(request)
puts response.read_body{
"data": {
"alert_id": "<string>"
}
}{
"error": {
"message": "<string>",
"code": 123
}
}{
"error": {
"message": "<string>",
"code": 123
}
}PATCH /v2/protected/properties/search/alerts/{alertId} modifie une alerte properties en place. Champs modifiables : search_query, webhook_url, match, search_name, context.
⚠️ Toujours préférer PATCH à delete + recreate. Le PATCH conserve le lien vers les properties déjà matchées : si vous activez ultérieurement ALERT_MATCH_MERGED, vous recevrez les fusions des biens déjà capturés. Une recréation perd ce lien.
Cas d’usage
- Migration webhook — pivoter
webhook_urlaprès un changement d’infra sans perdre l’historique. - Activer les fusions sur une alerte existante — passer
matchde["ALERT_MATCH_CREATED"]à["ALERT_MATCH_CREATED", "ALERT_MATCH_MERGED"]pour commencer à recevoir les enrichissements des properties déjà capturées. - Resserrer un filtre — ajouter un range prix ou un type sans casser l’historique.
Cross-links
Authorizations
Path Parameters
Body
application/json
Response
Show child attributes
Show child attributes
Was this page helpful?
⌘I

