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 Body Params   application/json 
{ 
    "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 Code Samples 
curl  --location  --request  PUT 'https://api.302.ai/dashboard/api_key/'  \
--header  'Authorization: Bearer '  \
--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