Naar hoofdinhoud gaan
POST
/
v1
/
monitors
/
{monitor_id}
Update Monitor
curl --request POST \
  --url https://api.olostep.com/v1/monitors/{monitor_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "metadata": {},
  "frequency": "hourly"
}
'
{
  "team_id": "<string>",
  "monitor_id": "<string>",
  "status": "<string>",
  "agent_id": "<string>",
  "fda_id": "<string>",
  "schedule_id": "<string>",
  "schedule_name": "<string>",
  "query": "<string>",
  "url": "<string>",
  "frequency": "hourly",
  "cron_expression": "<string>",
  "notification_channel": "email",
  "notification_target": "<string>",
  "metadata": {},
  "error_message": "<string>",
  "created_at": 123,
  "updated_at": 123
}

Documentation Index

Fetch the complete documentation index at: https://docs.olostep.com/llms.txt

Use this file to discover all available pages before exploring further.

Samenvoegingssemantiek: Metadata-updates volgen de aanpak van Stripe — nieuwe sleutels worden toegevoegd, bestaande sleutels worden bijgewerkt en sleutels die zijn ingesteld op een lege string "" worden verwijderd.

Autorisaties

Authorization
string
header
vereist

Bearer authenticatie header in de vorm van Bearer , waarbij jouw auth token is.

Padparameters

monitor_id
string
vereist

Unieke monitor-identificatie. Moet beginnen met monitor_.

Pattern: ^monitor_

Body

application/json
metadata
object

Metadata patch. Lege tekenreekswaarden verwijderen sleutels.

frequency
enum<string>
Beschikbare opties:
hourly,
daily,
weekly

Respons

Monitor succesvol bijgewerkt.

team_id
string
monitor_id
string

Unieke monitor identificatie.

status
string

Monitor levenscyclusstatus.

agent_id
string | null
fda_id
string | null
schedule_id
string | null
schedule_name
string | null
query
string
url
string<uri> | null
frequency
enum<string>
Beschikbare opties:
hourly,
daily,
weekly
cron_expression
string | null
notification_channel
enum<string>
Beschikbare opties:
email,
webhook
notification_target
string
metadata
object
error_message
string | null
created_at
integer

Unix-tijdstempel.

updated_at
integer

Unix-tijdstempel.