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.
Default gate metrics for the team.
Show child attributes
Default primary metrics for experiments in the team.
Show child attributes
Default secondary metrics for experiments in the team.
Show child attributes
Default holdout metrics for the team.
Show child attributes
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.