メインコンテンツへスキップ

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/

既存 API キーの名称と説明を更新できます。

パスパラメーター

keyId
string
必須
更新する API キーの ID。

リクエストボディ

name
string
新しい API キー名(1〜100 文字)。
description
string
新しい説明(最大 500 文字)。
permissions
array
新しい権限リスト。

レスポンス

success
boolean
更新が成功したかどうか。
message
string
ステータスメッセージ。
apiKey
object
更新後の API キー詳細。
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"
  }
}