Update Virtual Key
Authorizations
Path parameters
slugstringRequired
Body
namestringOptional
keystringOptional
notestring | nullableOptional
Responses
200
Successful response
application/json
Responseobject
401
Unauthorized response
application/json
put
from portkey_ai import Portkey
# Initialize the Portkey client
portkey = Portkey(
api_key="PORTKEY_API_KEY",
)
# Update a specific virtual key
updated_virtual_key = portkey.virtual_keys.update(
slug='VIRTUAL_KEY_SLUG',
name="openaiVKey",
note="hello",
rate_limits=[{"type": "requests", "unit": "rpm", "value": 696}]
)
print(updated_virtual_key)
{}
Last updated
Was this helpful?