메인 콘텐츠로 건너뛰기

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
새 키 이름입니다(1~100자).
description
string
새 설명입니다(최대 500자).
permissions
array
API 키에 부여할 새 권한 목록입니다.

응답

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"
  }
}