Update Workspace

Update Workspace

put
Authorizations
Path parameters
workspaceIdstringRequired
Body
namestringOptional
descriptionstringOptional
Responses
200
OK
application/json
Responseobject
put
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)
200

OK

{}

Last updated

Was this helpful?