MonitorsFtp monitors
Update FTP Monitor (Change Status)
Updates an FTP monitor and/or changes its status.
PATCH /api/ftp-monitors/:ftpMonitorPublicId
Authentication
Authorization: Bearer <token>
Parameters
ftpMonitorPublicId(Path, required): FTP monitor public UUID.
Request Body
status(optional):active,maintenance,disabled(also acceptsinactive/pausedand normalizes them todisabled)customerId(optional, number): Must belong to the same organizationname(optional, string)hostname(optional, string): Must be a hostname (no protocol, no path)port(optional, number | null)checkInterval(optional, number)timeoutSeconds(optional, number)allowedCheckCountryCodes(optional, string[] | null): ISO-3166-1 alpha-2, e.g."DE","US"ftpConfig(optional, object): Replaces the stored FTP config JSONconfig(optional, object): Alias offtpConfig
Note: Read-only users may only change status.
Note: If you omit ftpConfig/config, the current config remains unchanged.
{ "status": "maintenance" }Example (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": {}
}Common Errors
400 Invalid statusifstatusis not valid401 Unauthorizedif you are not authenticated403 Forbiddenif you do not have write access (e.g. read-only user tries to change other fields, or global supporter)404 FTP monitor not foundif the monitor does not exist