PUT /api-keys/
This endpoint allows you to update the name and description of an existing API key.
Path Parameters
The ID of the API key to update.
Request Body
The new name for the API key (1-100 characters).
The new description for the API key (max 500 characters).
The new list of permissions for the API key.
Response
Whether the update was successful.
The updated API key details.
The unique identifier for the API key.
ISO 8601 timestamp of the update.
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"
}
}