cURL
curl --request POST \ --url https://statsigapi.net/console/v1/users/{email} \ --header 'Content-Type: application/json' \ --header 'STATSIG-API-KEY: <api-key>' \ --data ' { "role": "<string>", "firstName": "<string>", "lastName": "<string>" } '
{ "message": "User updated successfully.", "data": { "email": "[email protected]", "firstName": "test", "lastName": "user", "role": "admin" } }
Optional header to respect review settings for mutation endpoints.
email
Schema for updating user information.
Update the user's role. Can be 'Admin', 'Read Only', 'Member', or any custom role name.
Update the user's first name.
Update the user's last name.
Update user response
A simple string explaining the result of the operation.
A single result.
Show child attributes
The email address of the user.
The user's first name.
The user's last name.
The user's role, which can be 'Admin', 'Read Only', 'Member', or any custom role name.
Was this page helpful?