Skip to main content
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)
{}

Authorizations

x-portkey-api-key
string
header
required

Path Parameters

workspaceId
string
required
userId
string
required

Body

application/json
role
enum<string>
Available options:
admin,
member,
manager

Response

200 - application/json

OK

The response is of type object.

Last modified on March 9, 2026