PUT
/
virtual-keys
/
{slug}
from portkey_ai import Portkey

# Initialize the Portkey client
portkey = Portkey()

# 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)
{}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

slug
string
required

Body

application/json

Response

200
application/json

Successful response

The response is of type object.