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>",
"description": "<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>"
],
"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>",
"description": "<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>"
],
"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.
Create team response
The response is of type object
.