v2

latestOpenAPI 3.0.02026-08-073221853.1 MB
Users

Create Team

post/console/v1/users/teams

Request body

namestring required

The name of the team.

descriptionstring

Description of the team.

membersstring[] required

Array of member email addresses in the team.

adminsstring[] required

Array of admin email addresses in the team.

changeTeamConfigs'anyone' | 'team_only' required

Who can change team configurations: "anyone" or "team_only".

reviewApproval'anyone' | 'team_only' | 'admin_only' required

Who can review and approve changes: "anyone", "team_only", or "admin_only".

defaultTargetApplicationsstring[] required

Default target applications for the team.

defaultHoldoutIDstring nullable

Default holdout ID for the team, if applicable.

requireReviewsboolean nullable

Whether reviews are required for changes, if applicable.

requireGateTemplatesboolean nullable

Whether gate templates are required for the team, if applicable.

requireExperimentTemplatesboolean nullable

Whether experiment templates are required for the team, if applicable.

requireDynamicConfigTemplatesboolean nullable

Whether dynamic config templates are required for the team, if applicable.

Response

Create team response

messagestring required

A simple string explaining the result of the operation.

Example response

{
  "message": "Team created successfully.",
  "data": {
    "name": "The Avengers",
    "members": [
      {
        "userID": "5sgBiiuoBX4fscrWdCXVma",
        "email": "test@statsig.com",
        "firstName": "test",
        "lastName": "user",
        "role": "admin"
      }
    ],
    "admins": [],
    "defaultGateMetrics": [],
    "defaultExperimentPrimaryMetrics": [],
    "defaultExperimentSecondaryMetrics": [],
    "defaultHoldoutMetrics": [],
    "changeTeamConfigs": "anyone",
    "reviewApproval": "anyone",
    "defaultTargetApplications": []
  }
}