Skip to main content
PUT
/
admin
/
workspaces
/
{workspaceId}
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)
{}

Authorizations

x-portkey-api-key
string
header
required

Path Parameters

workspaceId
string
required

Body

application/json
name
string
description
string
defaults
object
usage_limits
object[]
rate_limits
object[]

Response

200 - application/json

OK

The response is of type object.