Zum Hauptinhalt springen

Documentation Index

Fetch the complete documentation index at: https://docs.llmgenerator.com/llms.txt

Use this file to discover all available pages before exploring further.

PUT /api-keys/

Mit diesem Endpunkt können Sie Name und Beschreibung eines vorhandenen API-Schlüssels ändern.

Pfadparameter

keyId
string
erforderlich
Kennung des zu aktualisierenden API-Schlüssels.

Anfragetext

name
string
Neuer Name für den API-Schlüssel (1–100 Zeichen).
description
string
Neue Beschreibung für den API-Schlüssel (max. 500 Zeichen).
permissions
array
Neue Berechtigungsliste für den API-Schlüssel.

Antwort

success
boolean
Ob die Aktualisierung erfolgreich war.
message
string
Statusmeldung.
apiKey
object
Aktualisierte Details des API-Schlüssels.
curl -X PUT https://api.llmgenerator.com/api/v1/api-keys/llm_1706123456_abc123def456 \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Updated Production Key",
    "description": "Updated description"
  }'
{
  "success": true,
  "message": "API key updated successfully",
  "apiKey": {
    "id": "llm_1706123456_abc123def456",
    "name": "Updated Production Key",
    "description": "Updated description",
    "permissions": [],
    "updatedAt": "2026-01-27T10:00:00.000Z"
  }
}