FTP Monitor aktualisieren (Status ändern)
Aktualisiert einen FTP Monitor und/oder ändert den Status.
PATCH /api/ftp-monitors/:ftpMonitorPublicId
Authentifizierung
Authorization: Bearer <token>
Parameter
ftpMonitorPublicId(Pfad, erforderlich): Öffentliche UUID des FTP Monitors.
Request Body
status(optional):active,maintenance,disabled(akzeptiert auchinactive/pausedund normalisiert zudisabled)customerId(optional, number): Muss zur selben Organisation gehörenname(optional, string)hostname(optional, string): Muss ein Hostname sein (kein Protokoll, kein Pfad)port(optional, number | null)checkInterval(optional, number)timeoutSeconds(optional, number)allowedCheckCountryCodes(optional, string[] | null): ISO-3166-1 alpha-2, z.B."DE","US"ftpConfig(optional, object): Ersetzt die gespeicherte FTP-Config (JSON)config(optional, object): Alias vonftpConfig
Hinweis: Read-only Nutzer dürfen nur status ändern.
Hinweis: Wenn du ftpConfig/config weglässt, bleibt die bestehende Config unverändert.
{ "status": "maintenance" }Beispiel (cURL)
BASE_URL="https://uptimeify.io"
TOKEN="<your-api-token>"
curl -X PATCH \
"$BASE_URL/api/ftp-monitors/55555555-5555-4555-8555-555555555555" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"status":"active","allowedCheckCountryCodes":["DE","US"],"ftpConfig":{"user":"monitor","password":"<ftp-password>","secure":false}}'Response
{
"id": 400,
"status": "maintenance",
"config": {},
"ftpConfig": {}
}Häufige Fehler
400 Invalid statuswennstatusungültig ist401 Unauthorizedwenn du nicht authentifiziert bist403 Forbiddenwenn du keine Schreibrechte hast (z.B. Read-only versucht andere Felder zu ändern, oder Global Supporter)404 FTP monitor not foundwenn der Monitor nicht existiert