PUT /api-keys/
既存 API キーの名称と説明を更新できます。パスパラメーター
string
必須
更新する API キーの ID。
リクエストボディ
string
新しい API キー名(1〜100 文字)。
string
新しい説明(最大 500 文字)。
array
新しい権限リスト。
レスポンス
boolean
更新が成功したかどうか。
string
ステータスメッセージ。
object
更新後の API キー詳細。
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
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"
}'
const response = await fetch(
'https://api.llmgenerator.com/api/v1/api-keys/llm_1706123456_abc123def456',
{
method: 'PUT',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
name: 'Updated Production Key'
})
}
);
{
"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"
}
}
{
"message": "API key not found"
}
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"
}'
const response = await fetch(
'https://api.llmgenerator.com/api/v1/api-keys/llm_1706123456_abc123def456',
{
method: 'PUT',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
name: 'Updated Production Key'
})
}
);
{
"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"
}
}
{
"message": "API key not found"
}
このページは役に立ちましたか?