PUT /api-keys/
기존 API 키의 이름과 설명을 수정합니다.경로 매개변수
string
필수
수정할 API 키 ID입니다.
요청 본문
string
새 키 이름입니다(1~100자).
string
새 설명입니다(최대 500자).
array
API 키에 부여할 새 권한 목록입니다.
응답
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"
}
이 페이지가 도움이 되었나요?