curl --request POST \
--url https://statsigapi.net/console/v1/users/teams \
--header 'Content-Type: application/json' \
--header 'STATSIG-API-KEY: <api-key>' \
--data '
{
"name": "<string>",
"members": [
"<string>"
],
"admins": [
"<string>"
],
"defaultGateMetrics": [
{
"name": "<string>",
"type": "<string>"
}
],
"defaultExperimentPrimaryMetrics": [
{
"name": "<string>",
"type": "<string>"
}
],
"defaultExperimentSecondaryMetrics": [
{
"name": "<string>",
"type": "<string>"
}
],
"defaultHoldoutMetrics": [
{
"name": "<string>",
"type": "<string>"
}
],
"changeTeamConfigs": "anyone",
"reviewApproval": "anyone",
"defaultTargetApplications": [
"<string>"
],
"description": "<string>",
"defaultHoldoutID": "<string>",
"requireReviews": true,
"requireGateTemplates": true,
"requireExperimentTemplates": true,
"requireDynamicConfigTemplates": true
}
'{
"message": "Team created successfully.",
"data": {
"name": "The Avengers",
"members": [
{
"email": "test@statsig.com",
"firstName": "test",
"lastName": "user",
"role": "admin"
}
],
"admins": [],
"defaultGateMetrics": [],
"defaultExperimentPrimaryMetrics": [],
"defaultExperimentSecondaryMetrics": [],
"defaultHoldoutMetrics": [],
"changeTeamConfigs": "anyone",
"reviewApproval": "anyone",
"defaultTargetApplications": []
}
}curl --request POST \
--url https://statsigapi.net/console/v1/users/teams \
--header 'Content-Type: application/json' \
--header 'STATSIG-API-KEY: <api-key>' \
--data '
{
"name": "<string>",
"members": [
"<string>"
],
"admins": [
"<string>"
],
"defaultGateMetrics": [
{
"name": "<string>",
"type": "<string>"
}
],
"defaultExperimentPrimaryMetrics": [
{
"name": "<string>",
"type": "<string>"
}
],
"defaultExperimentSecondaryMetrics": [
{
"name": "<string>",
"type": "<string>"
}
],
"defaultHoldoutMetrics": [
{
"name": "<string>",
"type": "<string>"
}
],
"changeTeamConfigs": "anyone",
"reviewApproval": "anyone",
"defaultTargetApplications": [
"<string>"
],
"description": "<string>",
"defaultHoldoutID": "<string>",
"requireReviews": true,
"requireGateTemplates": true,
"requireExperimentTemplates": true,
"requireDynamicConfigTemplates": true
}
'{
"message": "Team created successfully.",
"data": {
"name": "The Avengers",
"members": [
{
"email": "test@statsig.com",
"firstName": "test",
"lastName": "user",
"role": "admin"
}
],
"admins": [],
"defaultGateMetrics": [],
"defaultExperimentPrimaryMetrics": [],
"defaultExperimentSecondaryMetrics": [],
"defaultHoldoutMetrics": [],
"changeTeamConfigs": "anyone",
"reviewApproval": "anyone",
"defaultTargetApplications": []
}
}Optional header to respect review settings for mutation endpoints.
The name of the team.
Array of member email addresses in the team.
Array of admin email addresses in the team.
Who can change team configurations: "anyone" or "team_only".
anyone, team_only Who can review and approve changes: "anyone", "team_only", or "admin_only".
anyone, team_only, admin_only Default target applications for the team.
Description of the team.
Default holdout ID for the team, if applicable.
Whether reviews are required for changes, if applicable.
Whether gate templates are required for the team, if applicable.
Whether experiment templates are required for the team, if applicable.
Whether dynamic config templates are required for the team, if applicable.
Create team response
A simple string explaining the result of the operation.
A single result.
Show child attributes
The name of the team.
The ID of the team.
Who can change team configurations: "anyone" or "team_only".
anyone, team_only Who can review and approve changes: "anyone", "team_only", or "admin_only".
anyone, team_only, admin_only Default target applications for the team.
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.
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.
Description of the team.
Default holdout ID for the team, if applicable.
Whether reviews are required for changes, if applicable.
Whether gate templates are required for the team, if applicable.
Whether experiment templates are required for the team, if applicable.
Whether dynamic config templates are required for the team, if applicable.