Update team
Replace the team definition. Use GET to fetch current data if you intend to add fields without overwriting existing values.
https://statsigapi.net/console/v1/users/teams/{id}Authorizations
STATSIG-API-KEYstringrequiredapiKey (header)
Path parameters
idstringrequiredid
Body
application/jsonnamestringThe name of the team.
descriptionstringDescription of the team.
idstringThe ID of the team.
membersstring[]Array of member email addresses in the team.
adminsstring[]Array of admin email addresses in the team.
defaultGateMetricsobject[]Default gate metrics for the team.
Show child attributes
name[]stringrequiredThe name of the metric.
type[]stringrequiredThe type of the metric.
defaultExperimentPrimaryMetricsobject[]Default primary metrics for experiments in the team.
Show child attributes
name[]stringrequiredThe name of the metric.
type[]stringrequiredThe type of the metric.
defaultExperimentSecondaryMetricsobject[]Default secondary metrics for experiments in the team.
Show child attributes
name[]stringrequiredThe name of the metric.
type[]stringrequiredThe type of the metric.
defaultHoldoutMetricsobject[]Default holdout metrics for the team.
Show child attributes
name[]stringrequiredThe name of the metric.
type[]stringrequiredThe type of the metric.
changeTeamConfigsstringWho can change team configurations: "anyone" or "team_only".
reviewApprovalstringWho can review and approve changes: "anyone", "team_only", or "admin_only".
defaultTargetApplicationsstring[]Default target applications for the team.
defaultHoldoutIDstringDefault holdout ID for the team, if applicable.
requireReviewsbooleanWhether reviews are required for changes, if applicable.
requireGateTemplatesbooleanWhether gate templates are required for the team, if applicable.
requireExperimentTemplatesbooleanWhether experiment templates are required for the team, if applicable.
requireDynamicConfigTemplatesbooleanWhether dynamic config templates are required for the team, if applicable.
Response
application/jsonmessagestringrequiredA simple string explaining the result of the operation.
dataobjectrequiredShow child attributes
namestringrequiredThe name of the team.
descriptionstringDescription of the team.
idstringrequiredThe ID of the team.
defaultGateMetricsobject[]requiredDefault gate metrics for the team.
name[]stringrequiredThe name of the metric.
type[]stringrequiredThe type of the metric.
defaultExperimentPrimaryMetricsobject[]requiredDefault primary metrics for experiments in the team.
name[]stringrequiredThe name of the metric.
type[]stringrequiredThe type of the metric.
defaultExperimentSecondaryMetricsobject[]requiredDefault secondary metrics for experiments in the team.
name[]stringrequiredThe name of the metric.
type[]stringrequiredThe type of the metric.
defaultHoldoutMetricsobject[]requiredDefault holdout metrics for the team.
name[]stringrequiredThe name of the metric.
type[]stringrequiredThe type of the metric.
changeTeamConfigsstringrequiredWho can change team configurations: "anyone" or "team_only".
reviewApprovalstringrequiredWho can review and approve changes: "anyone", "team_only", or "admin_only".
defaultTargetApplicationsstring[]requiredDefault target applications for the team.
defaultHoldoutIDstringDefault holdout ID for the team, if applicable.
requireReviewsbooleanWhether reviews are required for changes, if applicable.
requireGateTemplatesbooleanWhether gate templates are required for the team, if applicable.
requireExperimentTemplatesbooleanWhether experiment templates are required for the team, if applicable.
requireDynamicConfigTemplatesbooleanWhether dynamic config templates are required for the team, if applicable.
membersobject[]requireduserID[]stringrequiredThe user's unique ID.
email[]stringrequiredThe email address of the user.
firstName[]stringrequiredThe user's first name.
lastName[]stringrequiredThe user's last name.
role[]stringrequiredThe user's role, which can be 'Admin', 'Read Only', 'Member', or any custom role name.
adminsobject[]requireduserID[]stringrequiredThe user's unique ID.
email[]stringrequiredThe email address of the user.
firstName[]stringrequiredThe user's first name.
lastName[]stringrequiredThe user's last name.
role[]stringrequiredThe user's role, which can be 'Admin', 'Read Only', 'Member', or any custom role name.
statusintegerrequiredmessagestringrequiredstatusintegerrequiredmessagestringrequiredWas this helpful?