Update user

Reference for the POST /console/v1/users/{email} endpoint of the Statsig API.

posthttps://statsigapi.net/console/v1/users/{email}

Authorizations

STATSIG-API-KEYstringrequired

apiKey (header)

Path parameters

emailstringrequired

email

Body

application/json
rolestring

Update the user's role. Can be 'Admin', 'Read Only', 'Member', or any custom role name.

firstNamestring

Update the user's first name.

lastNamestring

Update the user's last name.

Response

application/json
200· Update user response
messagestringrequired

A simple string explaining the result of the operation.

dataobjectrequired
Show child attributes
userIDstringrequired

The user's unique ID.

emailstringrequired

The email address of the user.

Constraints:format: email
firstNamestringrequired

The user's first name.

lastNamestringrequired

The user's last name.

rolestringrequired

The user's role, which can be 'Admin', 'Read Only', 'Member', or any custom role name.

400· Invalid request. Please check the request input and try again.
statusintegerrequired
Allowed values:400
messagestringrequired
401· This endpoint only accepts an active CONSOLE key, but an invalid key was sent. Key: console-xxxXXXxxxXXXxxx
statusintegerrequired
Allowed values:401
messagestringrequired
403· Forbidden. The request was valid, but the server is refusing action. You might not have the necessary permissions to access the resource.
statusintegerrequired
Allowed values:403
messagestringrequired
404· Not Found. The requested resource could not be found.
statusintegerrequired
Allowed values:404
messagestringrequired

Was this helpful?