Skip to main content
Update the search criteria of an Advert alert
curl --request PATCH \
  --url https://api.fluximmo.io/v2/protected/adverts/search/alerts/{alertId} \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "search_query": {
    "filterAd": {
      "currentPrice": {
        "value": {
          "max": 123,
          "min": 123
        },
        "valuePerArea": {
          "max": 123,
          "min": 123
        }
      },
      "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
        }
      },
      "hasAnomaly": true,
      "isAuction": true,
      "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
      },
      "lastModifiedAt": [
        {
          "max": "2022-10-21T11:31:33.593Z",
          "min": "2022-10-21T11:31:33.593Z"
        }
      ],
      "offer": [
        {
          "isCurrentlyOccupied": true,
          "renting": {
            "isColocation": true,
            "isLongTerm": true,
            "isShortTerm": true,
            "isSubLease": true
          },
          "type": "OFFER_BUY"
        }
      ],
      "parking": {
        "count": {
          "max": 123,
          "min": 123
        },
        "numberOfCars": {
          "max": 123,
          "min": 123
        },
        "surface": {
          "max": 123,
          "min": 123
        },
        "type": []
      },
      "process": [],
      "scope": [],
      "tags": [
        "<string>"
      ],
      "type": [
        "CLASS_HOUSE"
      ],
      "warrantyDeposit": {
        "max": 123,
        "min": 123
      },
      "firstSeenAt": [
        {
          "max": "2022-10-21T11:31:33.593Z",
          "min": "2022-10-21T11:31:33.593Z"
        }
      ],
      "location": {
        "cityCoordinate": {
          "location": {
            "geoBoundingBox": {
              "bottomRight": {
                "lat": 123,
                "lon": 123
              },
              "topLeft": {
                "lat": 123,
                "lon": 123
              }
            },
            "geoDistance": {
              "distanceKm": 123,
              "pin": {
                "lat": 123,
                "lon": 123
              }
            },
            "geoInseeCodeDistance": {
              "distanceKm": 123,
              "inseeCode": "<string>"
            }
          }
        },
        "department": "<string>",
        "inseeCode": "<string>",
        "irisCode": "<string>",
        "locationCoordinate": {
          "location": {
            "geoBoundingBox": {
              "bottomRight": {
                "lat": 123,
                "lon": 123
              },
              "topLeft": {
                "lat": 123,
                "lon": 123
              }
            },
            "geoDistance": {
              "distanceKm": 123,
              "pin": {
                "lat": 123,
                "lon": 123
              }
            },
            "geoInseeCodeDistance": {
              "distanceKm": 123,
              "inseeCode": "<string>"
            }
          }
        },
        "postalCode": "<string>"
      },
      "source": {
        "flxId": "<string>",
        "url": "<string>",
        "website": "<string>"
      },
      "currency": [],
      "mainPropertyAdFlxId": [
        "<string>"
      ],
      "propertyFlxId": [
        "<string>"
      ],
      "isPro": true,
      "seller": [],
      "isOnline": true,
      "isExclusive": true
    },
    "fullTexts": [
      "<string>"
    ],
    "keywords": [
      "<string>"
    ]
  },
  "webhook_url": "<string>",
  "search_name": "<string>",
  "context": {
    "metadata": {}
  },
  "match": [
    "ALERT_MATCH_CREATED"
  ]
}
'
import requests

url = "https://api.fluximmo.io/v2/protected/adverts/search/alerts/{alertId}"

payload = {
"search_query": {
"filterAd": {
"currentPrice": {
"value": {
"max": 123,
"min": 123
},
"valuePerArea": {
"max": 123,
"min": 123
}
},
"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
}
},
"hasAnomaly": True,
"isAuction": True,
"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
},
"lastModifiedAt": [
{
"max": "2022-10-21T11:31:33.593Z",
"min": "2022-10-21T11:31:33.593Z"
}
],
"offer": [
{
"isCurrentlyOccupied": True,
"renting": {
"isColocation": True,
"isLongTerm": True,
"isShortTerm": True,
"isSubLease": True
},
"type": "OFFER_BUY"
}
],
"parking": {
"count": {
"max": 123,
"min": 123
},
"numberOfCars": {
"max": 123,
"min": 123
},
"surface": {
"max": 123,
"min": 123
},
"type": []
},
"process": [],
"scope": [],
"tags": ["<string>"],
"type": ["CLASS_HOUSE"],
"warrantyDeposit": {
"max": 123,
"min": 123
},
"firstSeenAt": [
{
"max": "2022-10-21T11:31:33.593Z",
"min": "2022-10-21T11:31:33.593Z"
}
],
"location": {
"cityCoordinate": { "location": {
"geoBoundingBox": {
"bottomRight": {
"lat": 123,
"lon": 123
},
"topLeft": {
"lat": 123,
"lon": 123
}
},
"geoDistance": {
"distanceKm": 123,
"pin": {
"lat": 123,
"lon": 123
}
},
"geoInseeCodeDistance": {
"distanceKm": 123,
"inseeCode": "<string>"
}
} },
"department": "<string>",
"inseeCode": "<string>",
"irisCode": "<string>",
"locationCoordinate": { "location": {
"geoBoundingBox": {
"bottomRight": {
"lat": 123,
"lon": 123
},
"topLeft": {
"lat": 123,
"lon": 123
}
},
"geoDistance": {
"distanceKm": 123,
"pin": {
"lat": 123,
"lon": 123
}
},
"geoInseeCodeDistance": {
"distanceKm": 123,
"inseeCode": "<string>"
}
} },
"postalCode": "<string>"
},
"source": {
"flxId": "<string>",
"url": "<string>",
"website": "<string>"
},
"currency": [],
"mainPropertyAdFlxId": ["<string>"],
"propertyFlxId": ["<string>"],
"isPro": True,
"seller": [],
"isOnline": True,
"isExclusive": True
},
"fullTexts": ["<string>"],
"keywords": ["<string>"]
},
"webhook_url": "<string>",
"search_name": "<string>",
"context": { "metadata": {} },
"match": ["ALERT_MATCH_CREATED"]
}
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: {
filterAd: {
currentPrice: {value: {max: 123, min: 123}, valuePerArea: {max: 123, min: 123}},
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}
},
hasAnomaly: true,
isAuction: true,
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
},
lastModifiedAt: [{max: '2022-10-21T11:31:33.593Z', min: '2022-10-21T11:31:33.593Z'}],
offer: [
{
isCurrentlyOccupied: true,
renting: {isColocation: true, isLongTerm: true, isShortTerm: true, isSubLease: true},
type: 'OFFER_BUY'
}
],
parking: {
count: {max: 123, min: 123},
numberOfCars: {max: 123, min: 123},
surface: {max: 123, min: 123},
type: []
},
process: [],
scope: [],
tags: ['<string>'],
type: ['CLASS_HOUSE'],
warrantyDeposit: {max: 123, min: 123},
firstSeenAt: [{max: '2022-10-21T11:31:33.593Z', min: '2022-10-21T11:31:33.593Z'}],
location: {
cityCoordinate: {
location: {
geoBoundingBox: {bottomRight: {lat: 123, lon: 123}, topLeft: {lat: 123, lon: 123}},
geoDistance: {distanceKm: 123, pin: {lat: 123, lon: 123}},
geoInseeCodeDistance: {distanceKm: 123, inseeCode: '<string>'}
}
},
department: '<string>',
inseeCode: '<string>',
irisCode: '<string>',
locationCoordinate: {
location: {
geoBoundingBox: {bottomRight: {lat: 123, lon: 123}, topLeft: {lat: 123, lon: 123}},
geoDistance: {distanceKm: 123, pin: {lat: 123, lon: 123}},
geoInseeCodeDistance: {distanceKm: 123, inseeCode: '<string>'}
}
},
postalCode: '<string>'
},
source: {flxId: '<string>', url: '<string>', website: '<string>'},
currency: [],
mainPropertyAdFlxId: ['<string>'],
propertyFlxId: ['<string>'],
isPro: true,
seller: [],
isOnline: true,
isExclusive: true
},
fullTexts: ['<string>'],
keywords: ['<string>']
},
webhook_url: '<string>',
search_name: '<string>',
context: {metadata: {}},
match: ['ALERT_MATCH_CREATED']
})
};

fetch('https://api.fluximmo.io/v2/protected/adverts/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/adverts/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' => [
'filterAd' => [
'currentPrice' => [
'value' => [
'max' => 123,
'min' => 123
],
'valuePerArea' => [
'max' => 123,
'min' => 123
]
],
'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
]
],
'hasAnomaly' => true,
'isAuction' => true,
'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
],
'lastModifiedAt' => [
[
'max' => '2022-10-21T11:31:33.593Z',
'min' => '2022-10-21T11:31:33.593Z'
]
],
'offer' => [
[
'isCurrentlyOccupied' => true,
'renting' => [
'isColocation' => true,
'isLongTerm' => true,
'isShortTerm' => true,
'isSubLease' => true
],
'type' => 'OFFER_BUY'
]
],
'parking' => [
'count' => [
'max' => 123,
'min' => 123
],
'numberOfCars' => [
'max' => 123,
'min' => 123
],
'surface' => [
'max' => 123,
'min' => 123
],
'type' => [

]
],
'process' => [

],
'scope' => [

],
'tags' => [
'<string>'
],
'type' => [
'CLASS_HOUSE'
],
'warrantyDeposit' => [
'max' => 123,
'min' => 123
],
'firstSeenAt' => [
[
'max' => '2022-10-21T11:31:33.593Z',
'min' => '2022-10-21T11:31:33.593Z'
]
],
'location' => [
'cityCoordinate' => [
'location' => [
'geoBoundingBox' => [
'bottomRight' => [
'lat' => 123,
'lon' => 123
],
'topLeft' => [
'lat' => 123,
'lon' => 123
]
],
'geoDistance' => [
'distanceKm' => 123,
'pin' => [
'lat' => 123,
'lon' => 123
]
],
'geoInseeCodeDistance' => [
'distanceKm' => 123,
'inseeCode' => '<string>'
]
]
],
'department' => '<string>',
'inseeCode' => '<string>',
'irisCode' => '<string>',
'locationCoordinate' => [
'location' => [
'geoBoundingBox' => [
'bottomRight' => [
'lat' => 123,
'lon' => 123
],
'topLeft' => [
'lat' => 123,
'lon' => 123
]
],
'geoDistance' => [
'distanceKm' => 123,
'pin' => [
'lat' => 123,
'lon' => 123
]
],
'geoInseeCodeDistance' => [
'distanceKm' => 123,
'inseeCode' => '<string>'
]
]
],
'postalCode' => '<string>'
],
'source' => [
'flxId' => '<string>',
'url' => '<string>',
'website' => '<string>'
],
'currency' => [

],
'mainPropertyAdFlxId' => [
'<string>'
],
'propertyFlxId' => [
'<string>'
],
'isPro' => true,
'seller' => [

],
'isOnline' => true,
'isExclusive' => true
],
'fullTexts' => [
'<string>'
],
'keywords' => [
'<string>'
]
],
'webhook_url' => '<string>',
'search_name' => '<string>',
'context' => [
'metadata' => [

]
],
'match' => [
'ALERT_MATCH_CREATED'
]
]),
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/adverts/search/alerts/{alertId}"

payload := strings.NewReader("{\n \"search_query\": {\n \"filterAd\": {\n \"currentPrice\": {\n \"value\": {\n \"max\": 123,\n \"min\": 123\n },\n \"valuePerArea\": {\n \"max\": 123,\n \"min\": 123\n }\n },\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 \"hasAnomaly\": true,\n \"isAuction\": true,\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 \"lastModifiedAt\": [\n {\n \"max\": \"2022-10-21T11:31:33.593Z\",\n \"min\": \"2022-10-21T11:31:33.593Z\"\n }\n ],\n \"offer\": [\n {\n \"isCurrentlyOccupied\": true,\n \"renting\": {\n \"isColocation\": true,\n \"isLongTerm\": true,\n \"isShortTerm\": true,\n \"isSubLease\": true\n },\n \"type\": \"OFFER_BUY\"\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 \"process\": [],\n \"scope\": [],\n \"tags\": [\n \"<string>\"\n ],\n \"type\": [\n \"CLASS_HOUSE\"\n ],\n \"warrantyDeposit\": {\n \"max\": 123,\n \"min\": 123\n },\n \"firstSeenAt\": [\n {\n \"max\": \"2022-10-21T11:31:33.593Z\",\n \"min\": \"2022-10-21T11:31:33.593Z\"\n }\n ],\n \"location\": {\n \"cityCoordinate\": {\n \"location\": {\n \"geoBoundingBox\": {\n \"bottomRight\": {\n \"lat\": 123,\n \"lon\": 123\n },\n \"topLeft\": {\n \"lat\": 123,\n \"lon\": 123\n }\n },\n \"geoDistance\": {\n \"distanceKm\": 123,\n \"pin\": {\n \"lat\": 123,\n \"lon\": 123\n }\n },\n \"geoInseeCodeDistance\": {\n \"distanceKm\": 123,\n \"inseeCode\": \"<string>\"\n }\n }\n },\n \"department\": \"<string>\",\n \"inseeCode\": \"<string>\",\n \"irisCode\": \"<string>\",\n \"locationCoordinate\": {\n \"location\": {\n \"geoBoundingBox\": {\n \"bottomRight\": {\n \"lat\": 123,\n \"lon\": 123\n },\n \"topLeft\": {\n \"lat\": 123,\n \"lon\": 123\n }\n },\n \"geoDistance\": {\n \"distanceKm\": 123,\n \"pin\": {\n \"lat\": 123,\n \"lon\": 123\n }\n },\n \"geoInseeCodeDistance\": {\n \"distanceKm\": 123,\n \"inseeCode\": \"<string>\"\n }\n }\n },\n \"postalCode\": \"<string>\"\n },\n \"source\": {\n \"flxId\": \"<string>\",\n \"url\": \"<string>\",\n \"website\": \"<string>\"\n },\n \"currency\": [],\n \"mainPropertyAdFlxId\": [\n \"<string>\"\n ],\n \"propertyFlxId\": [\n \"<string>\"\n ],\n \"isPro\": true,\n \"seller\": [],\n \"isOnline\": true,\n \"isExclusive\": true\n },\n \"fullTexts\": [\n \"<string>\"\n ],\n \"keywords\": [\n \"<string>\"\n ]\n },\n \"webhook_url\": \"<string>\",\n \"search_name\": \"<string>\",\n \"context\": {\n \"metadata\": {}\n },\n \"match\": [\n \"ALERT_MATCH_CREATED\"\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/adverts/search/alerts/{alertId}")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"search_query\": {\n \"filterAd\": {\n \"currentPrice\": {\n \"value\": {\n \"max\": 123,\n \"min\": 123\n },\n \"valuePerArea\": {\n \"max\": 123,\n \"min\": 123\n }\n },\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 \"hasAnomaly\": true,\n \"isAuction\": true,\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 \"lastModifiedAt\": [\n {\n \"max\": \"2022-10-21T11:31:33.593Z\",\n \"min\": \"2022-10-21T11:31:33.593Z\"\n }\n ],\n \"offer\": [\n {\n \"isCurrentlyOccupied\": true,\n \"renting\": {\n \"isColocation\": true,\n \"isLongTerm\": true,\n \"isShortTerm\": true,\n \"isSubLease\": true\n },\n \"type\": \"OFFER_BUY\"\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 \"process\": [],\n \"scope\": [],\n \"tags\": [\n \"<string>\"\n ],\n \"type\": [\n \"CLASS_HOUSE\"\n ],\n \"warrantyDeposit\": {\n \"max\": 123,\n \"min\": 123\n },\n \"firstSeenAt\": [\n {\n \"max\": \"2022-10-21T11:31:33.593Z\",\n \"min\": \"2022-10-21T11:31:33.593Z\"\n }\n ],\n \"location\": {\n \"cityCoordinate\": {\n \"location\": {\n \"geoBoundingBox\": {\n \"bottomRight\": {\n \"lat\": 123,\n \"lon\": 123\n },\n \"topLeft\": {\n \"lat\": 123,\n \"lon\": 123\n }\n },\n \"geoDistance\": {\n \"distanceKm\": 123,\n \"pin\": {\n \"lat\": 123,\n \"lon\": 123\n }\n },\n \"geoInseeCodeDistance\": {\n \"distanceKm\": 123,\n \"inseeCode\": \"<string>\"\n }\n }\n },\n \"department\": \"<string>\",\n \"inseeCode\": \"<string>\",\n \"irisCode\": \"<string>\",\n \"locationCoordinate\": {\n \"location\": {\n \"geoBoundingBox\": {\n \"bottomRight\": {\n \"lat\": 123,\n \"lon\": 123\n },\n \"topLeft\": {\n \"lat\": 123,\n \"lon\": 123\n }\n },\n \"geoDistance\": {\n \"distanceKm\": 123,\n \"pin\": {\n \"lat\": 123,\n \"lon\": 123\n }\n },\n \"geoInseeCodeDistance\": {\n \"distanceKm\": 123,\n \"inseeCode\": \"<string>\"\n }\n }\n },\n \"postalCode\": \"<string>\"\n },\n \"source\": {\n \"flxId\": \"<string>\",\n \"url\": \"<string>\",\n \"website\": \"<string>\"\n },\n \"currency\": [],\n \"mainPropertyAdFlxId\": [\n \"<string>\"\n ],\n \"propertyFlxId\": [\n \"<string>\"\n ],\n \"isPro\": true,\n \"seller\": [],\n \"isOnline\": true,\n \"isExclusive\": true\n },\n \"fullTexts\": [\n \"<string>\"\n ],\n \"keywords\": [\n \"<string>\"\n ]\n },\n \"webhook_url\": \"<string>\",\n \"search_name\": \"<string>\",\n \"context\": {\n \"metadata\": {}\n },\n \"match\": [\n \"ALERT_MATCH_CREATED\"\n ]\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.fluximmo.io/v2/protected/adverts/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 \"filterAd\": {\n \"currentPrice\": {\n \"value\": {\n \"max\": 123,\n \"min\": 123\n },\n \"valuePerArea\": {\n \"max\": 123,\n \"min\": 123\n }\n },\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 \"hasAnomaly\": true,\n \"isAuction\": true,\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 \"lastModifiedAt\": [\n {\n \"max\": \"2022-10-21T11:31:33.593Z\",\n \"min\": \"2022-10-21T11:31:33.593Z\"\n }\n ],\n \"offer\": [\n {\n \"isCurrentlyOccupied\": true,\n \"renting\": {\n \"isColocation\": true,\n \"isLongTerm\": true,\n \"isShortTerm\": true,\n \"isSubLease\": true\n },\n \"type\": \"OFFER_BUY\"\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 \"process\": [],\n \"scope\": [],\n \"tags\": [\n \"<string>\"\n ],\n \"type\": [\n \"CLASS_HOUSE\"\n ],\n \"warrantyDeposit\": {\n \"max\": 123,\n \"min\": 123\n },\n \"firstSeenAt\": [\n {\n \"max\": \"2022-10-21T11:31:33.593Z\",\n \"min\": \"2022-10-21T11:31:33.593Z\"\n }\n ],\n \"location\": {\n \"cityCoordinate\": {\n \"location\": {\n \"geoBoundingBox\": {\n \"bottomRight\": {\n \"lat\": 123,\n \"lon\": 123\n },\n \"topLeft\": {\n \"lat\": 123,\n \"lon\": 123\n }\n },\n \"geoDistance\": {\n \"distanceKm\": 123,\n \"pin\": {\n \"lat\": 123,\n \"lon\": 123\n }\n },\n \"geoInseeCodeDistance\": {\n \"distanceKm\": 123,\n \"inseeCode\": \"<string>\"\n }\n }\n },\n \"department\": \"<string>\",\n \"inseeCode\": \"<string>\",\n \"irisCode\": \"<string>\",\n \"locationCoordinate\": {\n \"location\": {\n \"geoBoundingBox\": {\n \"bottomRight\": {\n \"lat\": 123,\n \"lon\": 123\n },\n \"topLeft\": {\n \"lat\": 123,\n \"lon\": 123\n }\n },\n \"geoDistance\": {\n \"distanceKm\": 123,\n \"pin\": {\n \"lat\": 123,\n \"lon\": 123\n }\n },\n \"geoInseeCodeDistance\": {\n \"distanceKm\": 123,\n \"inseeCode\": \"<string>\"\n }\n }\n },\n \"postalCode\": \"<string>\"\n },\n \"source\": {\n \"flxId\": \"<string>\",\n \"url\": \"<string>\",\n \"website\": \"<string>\"\n },\n \"currency\": [],\n \"mainPropertyAdFlxId\": [\n \"<string>\"\n ],\n \"propertyFlxId\": [\n \"<string>\"\n ],\n \"isPro\": true,\n \"seller\": [],\n \"isOnline\": true,\n \"isExclusive\": true\n },\n \"fullTexts\": [\n \"<string>\"\n ],\n \"keywords\": [\n \"<string>\"\n ]\n },\n \"webhook_url\": \"<string>\",\n \"search_name\": \"<string>\",\n \"context\": {\n \"metadata\": {}\n },\n \"match\": [\n \"ALERT_MATCH_CREATED\"\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/adverts/search/alerts/{alertId} modifie une alerte en place. Champs modifiables : search_query, webhook_url, match, search_name, context. ⚠️ Toujours préférer PATCH à delete + recreate. Le PATCH conserve l’historique des matches : les events PRICE / REPUBLISHED / UNPUBLISHED continueront à s’appliquer aux adverts déjà matchées. Une recréation perd définitivement ce lien.

Cas d’usage

  • Migration webhook — changer webhook_url après un changement d’infra (nouveau domaine, nouveau path).
  • Resserrer / élargir le filtre — ajouter un range prix ou un nouveau département sans perdre les events historiques.
  • Activer les events sur une alerte existante — ajouter ALERT_MATCH_ADVERT_EVENT au tableau match pour commencer à recevoir les events sur les adverts déjà matchées.

Authorizations

x-api-key
string
header
required

Path Parameters

alertId
string
required

Body

application/json
search_query
object
required
webhook_url
string
search_name
string
context
object
match
enum<string>[]
Available options:
ALERT_MATCH_UNKNOWN,
ALERT_MATCH_CREATED,
ALERT_MATCH_ADVERT_EVENT
Example:
["ALERT_MATCH_CREATED"]

Response

data
object
required