Run in Apifox
Update a specified API Key using an API Key with system permissions. This interface requires appropriate permissions for the corresponding API Key Price: Free Request
Example: Bearer {{YOUR_API_KEY}}
Body Params application/json
allow_custom_model
boolean
required
{
"api_name" : "YOUR_API_NAME" ,
"allow_save_logs" : false ,
"allow_manage_key" : false ,
"allow_custom_model" : false ,
"limit_cost" : 0 ,
"limit_daily_cost" : 0 ,
"expired_on" : 0
}
Request samples curl --location --request PUT 'https://api.302.ai/dashboard/api_key/' \
--header 'Authorization: Bearer sk-jls4AaVBGoe1GwZD64qZA1qyKTN1MPHa4NmvH1cT68z7K1Zz' \
--header 'Content-Type: application/json' \
--data-raw '{
"api_name": "YOUR_API_NAME",
"allow_save_logs": false,
"allow_manage_key": false,
"allow_custom_model": false,
"limit_cost": 0,
"limit_daily_cost": 0,
"expired_on": 0
}'
Responses application/json Generate Code
{
"code" : 0 ,
"msg" : "success" ,
"data" : { }
}
Modified at 2025-05-12 07:01:13