curl --request PATCH \
--url https://api.example.com/api-keys/{key_id} \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>"
}
'{
"id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"is_active": true,
"name": "<string>",
"last_used_at": "2023-11-07T05:31:56Z"
}Updates the name of a specific API key
curl --request PATCH \
--url https://api.example.com/api-keys/{key_id} \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>"
}
'{
"id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"is_active": true,
"name": "<string>",
"last_used_at": "2023-11-07T05:31:56Z"
}Successful Response
Represents an API key for authentication (without exposing the actual key).
Unique API key identifier with 'apikey_' prefix
When this API key was created
Whether this API key is currently valid and can be used
Optional descriptive name for this API key
When this API key was last used for authentication