POST
/
console
/
v1
/
users
/
{email}
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": "test@statsig.com",
    "firstName": "test",
    "lastName": "user",
    "role": "admin"
  }
}

Authorizations

STATSIG-API-KEY
string
header
required

Headers

x-respect-review-settings
string

Optional header to respect review settings for mutation endpoints.

Path Parameters

email
string
required

email

Body

application/json

Schema for updating user information.

role
string

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

firstName
string

Update the user's first name.

lastName
string

Update the user's last name.

Response

200
application/json
Update user response
message
string
required

A simple string explaining the result of the operation.

data
object
required

A single result.