from portkey_ai import Portkey
# Initialize the Portkey client
portkey = Portkey(
api_key="PORTKEY_API_KEY",
)
# Update workspace
workspace = portkey.admin.workspaces.update(
workspace_id='WORKSPACE_ID',
name='WORKSPACE 0909',
description='This is a test description',
defaults={
"x": "y"
}
)
print(workspace){}from portkey_ai import Portkey
# Initialize the Portkey client
portkey = Portkey(
api_key="PORTKEY_API_KEY",
)
# Update workspace
workspace = portkey.admin.workspaces.update(
workspace_id='WORKSPACE_ID',
name='WORKSPACE 0909',
description='This is a test description',
defaults={
"x": "y"
}
)
print(workspace){}Show child attributes
Credit Limit. Used for tracking usage
x >= 1Type of credit limit
cost, tokens Alert Threshold. Used for alerting when usage reaches more than this
x >= 1Reset the usage periodically.
monthly, weekly OK
The response is of type object.
Was this page helpful?