write_review – Rezension schreiben
Produktrezension; nach Zustellung als "verifizierter Kauf" markiert. Eine pro Konto und Produkt.
- HTTP
- POST /api/products/{product_id}/reviews
- Zugang
- Konto (API-Key) nötig
- Bereich
- Bestellung
- Nur lesend
- nein
Du bist nicht angemeldet. Anmelden
Formular
Eingabeschema (JSON Schema)
{
"type": "object",
"properties": {
"product_id": {
"type": "string",
"description": "Produkt-ID, z. B. KI-EDGE-01 oder ABxxxxxxxx"
},
"rating": {
"type": "integer",
"minimum": 1,
"maximum": 5
},
"title": {
"type": "string"
},
"text": {
"type": "string"
}
},
"required": [
"product_id",
"rating",
"title",
"text"
]
}
REST
curl -X POST https://anltx.com/api/products/<product_id>/reviews \
-H "Authorization: Bearer $ANLTX_KEY" \
-H "Content-Type: application/json" -H "Idempotency-Key: $(uuidgen)" \
-d '{"rating":"<rating>","title":"<title>","text":"<text>"}'
MCP
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "write_review",
"arguments": {
"product_id": "<product_id>",
"rating": "<rating>",
"title": "<title>",
"text": "<text>"
}
}
}