Skip to main content
PUT
/
admin
/
users
/
{userId}
from portkey_ai import Portkey # Initialize the Portkey client portkey = Portkey( api_key="PORTKEY_API_KEY", ) # Update a user user = portkey.admin.users.update( user_id='USER_ID', role="member" ) print(user)
{}

Authorizations

x-portkey-api-key
string
header
required

Path Parameters

userId
string
required

Body

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

Response

200 - application/json

OK

The response is of type object.

Last modified on March 17, 2026