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
ID of the API key to edit
Response
Updated API key object Updated name of the API key
ISO 8601 timestamp of when the key was created
cURL
Python
JavaScript
React
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"
}'
Success Response
Error Response - Not Found
Error Response - Missing Parameter
{
"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"
}
}