Skip to main content
PATCH
Mettre à jour un monitor

Autorisations

Authorization
string
header
requis

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Paramètres de chemin

monitorId
string<uuid>
requis

L’ID du monitor

Corps

application/json

Payload de mise à jour partielle du monitor. Incluez au moins un champ.

goal
string | null

Objectif en langage clair utilisé pour déterminer si les pages modifiées sont significatives. S’il est fourni et que judgeEnabled est omis, l’évaluation est activée automatiquement.

Maximum string length: 2000
judgeEnabled
boolean

Indique si les pages modifiées doivent être évaluées par rapport à goal. Nécessite un goal non vide pour s’exécuter.

name
string
Maximum string length: 256
notification
object
retentionDays
integer
Plage requise: 1 <= x <= 365
schedule
object

Planification des vérifications du monitor. Fournissez soit cron, soit text.

status
enum<string>
Options disponibles:
active,
paused
targets
(Scrape target · object | Crawl target · object)[]
Required array length: 1 - 50 elements
webhook
object

Destination du webhook pour les événements de page du monitor et de fin de vérification.

Réponse

Monitor mis à jour

data
object
success
boolean