from portkey_ai import Portkey
# Initialize the Portkey client
portkey = Portkey(
api_key="PORTKEY_API_KEY",
)
# Update user in workspace
updated_user = portkey.admin.workspaces.users.update(
workspace_id='WORKSPACE_SLUG',
user_id="USER_ID",
role='member'
)
print(updated_user){}Update Workspace Member
PUT
/
admin
/
workspaces
/
{workspaceId}
/
users
/
{userId}
from portkey_ai import Portkey
# Initialize the Portkey client
portkey = Portkey(
api_key="PORTKEY_API_KEY",
)
# Update user in workspace
updated_user = portkey.admin.workspaces.users.update(
workspace_id='WORKSPACE_SLUG',
user_id="USER_ID",
role='member'
)
print(updated_user){}Documentation Index
Fetch the complete documentation index at: https://portkey-docs-feat-byteplus-provider.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Last modified on May 24, 2026
Was this page helpful?
⌘I

