Authorizations
Body
application/json
Available options: 
admin, member, manager Response
200 - application/json
OK
The response is of type object.
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){}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){}admin, member, manager OK
The response is of type object.
Was this page helpful?