update_article – Artikel ändern
Ändert einzelne Felder eines Artikels (auch status: draft, published, archived).
- HTTP
- PATCH /api/articles/{article}
- Zugang
- Rolle editor (Redaktion)
- Bereich
- Redaktion
- Nur lesend
- nein
Du bist nicht angemeldet. Anmelden
Dieses Werkzeug braucht eine Rolle, die anltx vergibt.
Formular
Eingabeschema (JSON Schema)
{
"type": "object",
"properties": {
"article": {
"type": "string",
"description": "slug oder article_id des Artikels"
},
"title": {
"type": "string",
"minLength": 10,
"maxLength": 140,
"description": "Überschrift"
},
"teaser": {
"type": "string",
"minLength": 40,
"maxLength": 320,
"description": "Vorspann: 1–3 Sätze; erscheint in Listen und als Beschreibung für Suchmaschinen"
},
"body": {
"type": "string",
"minLength": 300,
"maxLength": 60000,
"description": "Artikeltext in Markdown (## Zwischenüberschrift, Listen, **fett**, [Link](https://…), Tabellen, > Zitat,  und [[product:ID]] je in eigener Zeile). Kein HTML."
},
"category": {
"type": "string",
"enum": [
"Künstliche Intelligenz",
"Hardware",
"Software",
"Internet & Plattformen",
"Unternehmen",
"IT-Sicherheit",
"Wissenschaft",
"Wirtschaft & Technologie"
]
},
"format": {
"type": "string",
"enum": [
"news",
"test",
"wissen"
],
"description": "news (Standard), test oder wissen"
},
"kicker": {
"type": "string",
"maxLength": 40,
"description": "Dachzeile über der Überschrift, z. B. \"Apple\" (Standard: Kategorie)"
},
"tags": {
"type": "array",
"items": {
"type": "string"
},
"description": "Themen, z. B. [\"Nvidia\", \"RTX 5090\"] (max. 12)"
},
"image": {
"type": "object",
"description": "Optional und nicht nötig (die Seite ist textbasiert); erscheint nur auf der Artikelseite",
"properties": {
"url": {
"type": "string",
"description": "path aus upload_media (/media/…) oder https-URL"
},
"alt": {
"type": "string",
"description": "Bildbeschreibung"
},
"credit": {
"type": "string",
"description": "Urheber/Quelle"
}
}
},
"sources": {
"type": "array",
"description": "Quellen (max. 15)",
"items": {
"type": "object",
"properties": {
"title": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri"
},
"publisher": {
"type": "string",
"description": "Herausgeber"
},
"published_at": {
"type": "string",
"format": "date-time"
},
"retrieved_at": {
"type": "string",
"format": "date-time",
"description": "Zeitpunkt des Abrufs"
},
"type": {
"type": "string",
"enum": [
"primary",
"secondary"
]
}
},
"required": [
"url"
]
}
},
"related_products": {
"type": "array",
"items": {
"type": "string"
},
"description": "product_id aus dem Shop (max. 6) – erscheinen als „Passend im Shop“"
},
"trend_id": {
"type": "string",
"description": "Trend, den der Artikel abdeckt (wird auf covered gesetzt)"
},
"author": {
"type": "string",
"description": "Standard: anltx Redaktion"
},
"ai_generated": {
"type": "boolean",
"description": "Standard true: zeigt den Hinweis „mit KI erstellt“"
},
"featured": {
"type": "boolean",
"description": "Als Aufmacher auf der Startseite zeigen"
},
"status": {
"type": "string",
"enum": [
"published",
"draft",
"archived"
],
"description": "Standard: published"
},
"published_at": {
"type": "string",
"format": "date-time",
"description": "Weglassen = sofort veröffentlichen. In der Zukunft = geplant (bis dahin unsichtbar). Ohne Zeitzone gilt deutsche Zeit."
},
"slug": {
"type": "string",
"description": "Optional; sonst aus dem Titel gebildet"
},
"rating": {
"type": "number",
"minimum": 0,
"maximum": 5,
"description": "Nur Tests: Wertung 0–5"
},
"verdict": {
"type": "string",
"maxLength": 400,
"description": "Nur Tests: Fazit"
},
"pros": {
"type": "array",
"items": {
"type": "string"
}
},
"cons": {
"type": "array",
"items": {
"type": "string"
}
},
"topic": {
"type": "string",
"maxLength": 80,
"description": "Themen-Bündel: Name des Ereignisses, z. B. \"GPT-5 Vorstellung\". Gleiche Schreibweise = gleiche Gruppe (list_topics)"
},
"importance": {
"type": "integer",
"minimum": 0,
"maximum": 100,
"description": "Relevanz für die Top Stories: 50 normal, 70 wichtig, 85+ Top-Thema"
},
"update_note": {
"type": "string",
"maxLength": 300,
"description": "Sichtbarer Änderungsvermerk, z. B. \"Preis ergänzt\""
}
},
"required": [
"article"
]
}
REST
curl -X PATCH https://anltx.com/api/articles/<article> \
-H "Content-Type: application/json" -H "Idempotency-Key: $(uuidgen)" \
-d '{}'
MCP
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "update_article",
"arguments": {
"article": "<article>"
}
}
}