Tag von Monitor entfernen
Entfernt eine Tag-Zuweisung von einem Monitor. Der Aufrufer muss Lesezugriff auf den Monitor haben.
DELETE /api/monitor-tags
Body
{
"monitorType": "website",
"monitorId": 101,
"tagId": 1
}monitorType(erforderlich): Typ des Monitors. Eines von:website|dns|icmp|smtp|ssh|ftp|imap_pop.monitorId(erforderlich): Numerische ID des Monitors.tagId(erforderlich): Numerische ID des zu entfernenden Tags.
Beispiel (cURL)
BASE_URL="https://uptimeify.io"
TOKEN="<dein-api-token>"
curl -X DELETE "$BASE_URL/api/monitor-tags" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"monitorType":"website","monitorId":101,"tagId":1}'Antwort (Response)
Gibt 204 No Content bei Erfolg zurück.
Häufige Fehler
400 Bad RequestwennmonitorTypekein unterstützter Typ ist401 Unauthorizedwenn du nicht angemeldet bist403 Forbiddenwenn du keinen Lesezugriff auf den Monitor hast404 Not Foundwenn die Zuweisung nicht existiert