Virtual Keys
Update Virtual Key
API Reference
Virtual Keys
Prompts
- POSTCreate Prompt
- GETList Prompts
- GETRetrieve Prompt
- PUTUpdate Prompt
- DELDelete Prompt
- PUTPublish Prompt
- GETList Prompt Versions
- GETRetrieve Prompt Version
- PUTUpdate Prompt Version
- Prompt Partials
- Prompt Labels
- Prompt Collections
API Keys
Analytics [BETA]
- Summary
- Groups Paginated Data
- Graphs - Time Series Data
User Invites
Workspaces
Workspace Members
Audit Logs
OpenAPI
Update Virtual Key
PUT
/
virtual-keys
/
{slug}
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)
{}
Authorizations
Path Parameters
Body
application/json
Response
200
application/json
Successful response
The response is of type object
.
Was this page helpful?
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)
{}