Skip to main content

Endpoint

POST https://api.ugc.inc/org/api-key/edit

Overview

Update the name of an existing API key. This endpoint allows you to rename API keys for better organization and identification. The API key itself remains unchanged.

Request Body

apiKeyId
string
required
ID of the API key to edit
name
string
required
New name for the API key

Response

data
object
Updated API key object
curl -X POST https://api.ugc.inc/org/api-key/edit \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "apiKeyId": "550e8400-e29b-41d4-a716-446655440000",
    "name": "Updated Production Key"
  }'
{
  "ok": true,
  "code": 200,
  "message": "Success",
  "data": {
    "id": "550e8400-e29b-41d4-a716-446655440000",
    "name": "Updated Production Key",
    "created_at": "2024-01-15T10:30:00.000Z"
  }
}