Skip to main content
Update the search criteria of an Advert alert
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:

Response

data
object
required