Create Team

posthttps://statsigapi.net/console/v1/users/teams

Authorizations

STATSIG-API-KEYstringrequired

apiKey (header)

Body

application/json
namestringrequired

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.

defaultGateMetricsobject[]required

Default gate metrics for the team.

Show child attributes
name[]stringrequired

The name of the metric.

type[]stringrequired

The type of the metric.

defaultExperimentPrimaryMetricsobject[]required

Default primary metrics for experiments in the team.

Show child attributes
name[]stringrequired

The name of the metric.

type[]stringrequired

The type of the metric.

defaultExperimentSecondaryMetricsobject[]required

Default secondary metrics for experiments in the team.

Show child attributes
name[]stringrequired

The name of the metric.

type[]stringrequired

The type of the metric.

defaultHoldoutMetricsobject[]required

Default holdout metrics for the team.

Show child attributes
name[]stringrequired

The name of the metric.

type[]stringrequired

The type of the metric.

changeTeamConfigsstringrequired

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

reviewApprovalstringrequired

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

defaultTargetApplicationsstring[]required

Default target applications for the team.

defaultHoldoutIDstring

Default holdout ID for the team, if applicable.

requireReviewsboolean

Whether reviews are required for changes, if applicable.

requireGateTemplatesboolean

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

requireExperimentTemplatesboolean

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

requireDynamicConfigTemplatesboolean

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

Response

application/json
200· Create team response
messagestringrequired

A simple string explaining the result of the operation.

dataobjectrequired
Show child attributes
namestringrequired

The name of the team.

descriptionstring

Description of the team.

idstringrequired

The ID of the team.

defaultGateMetricsobject[]required

Default gate metrics for the team.

name[]stringrequired

The name of the metric.

type[]stringrequired

The type of the metric.

defaultExperimentPrimaryMetricsobject[]required

Default primary metrics for experiments in the team.

name[]stringrequired

The name of the metric.

type[]stringrequired

The type of the metric.

defaultExperimentSecondaryMetricsobject[]required

Default secondary metrics for experiments in the team.

name[]stringrequired

The name of the metric.

type[]stringrequired

The type of the metric.

defaultHoldoutMetricsobject[]required

Default holdout metrics for the team.

name[]stringrequired

The name of the metric.

type[]stringrequired

The type of the metric.

changeTeamConfigsstringrequired

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

reviewApprovalstringrequired

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

defaultTargetApplicationsstring[]required

Default target applications for the team.

defaultHoldoutIDstring

Default holdout ID for the team, if applicable.

requireReviewsboolean

Whether reviews are required for changes, if applicable.

requireGateTemplatesboolean

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

requireExperimentTemplatesboolean

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

requireDynamicConfigTemplatesboolean

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

membersobject[]required
userID[]stringrequired

The user's unique ID.

email[]stringrequired

The email address of the user.

firstName[]stringrequired

The user's first name.

lastName[]stringrequired

The user's last name.

role[]stringrequired

The user's role, which can be 'Admin', 'Read Only', 'Member', or any custom role name.

adminsobject[]required
userID[]stringrequired

The user's unique ID.

email[]stringrequired

The email address of the user.

firstName[]stringrequired

The user's first name.

lastName[]stringrequired

The user's last name.

role[]stringrequired

The user's role, which can be 'Admin', 'Read Only', 'Member', or any custom role name.

400· Invalid request. Please check the request input and try again.
statusintegerrequired
messagestringrequired
401· This endpoint only accepts an active CONSOLE key, but an invalid key was sent. Key: console-xxxXXXxxxXXXxxx
statusintegerrequired
messagestringrequired

Was this helpful?