Regenerate an existing API key while optionally updating its parameters.
Parameters:
Returns:
Example:
curl --location --request POST 'http://localhost:4000/key/sk-1234/regenerate' --header 'Authorization: Bearer sk-1234' --header 'Content-Type: application/json' --data-raw '{
"max_budget": 100,
"metadata": {"team": "core-infra"},
"models": ["gpt-4", "gpt-3.5-turbo"]
}'
Note: This is an Enterprise feature. It requires a premium license to use.
Successful Response