Enable Gate
https://statsigapi.net/console/v1/gates/{id}/enableAuthorizations
STATSIG-API-KEYstringrequiredapiKey (header)
Path parameters
idstringrequiredid
Query parameters
includeArchiveMetadatastringWhen "true", populate archivedAt / archivedBy* / archiveReason on the gate when it is currently archived. When omitted or "false", those fields are absent from the response.
Response
application/jsonmessagestringrequiredA simple string explaining the result of the operation.
dataobjectrequiredShow child attributes
idstringrequiredID
namestringThe gate display name
idTypestringdescriptionstringrequiredlastModifierIDstringrequiredID of the last modifier.
lastModifiedTimenumberrequiredTime of the last modification.
lastModifierEmailstringrequiredEmail of the last modifier.
lastModifierNamestringrequiredName of the last modifier.
creatorIDstringcreatedTimenumberrequiredTimestamp when the entity was created.
creatorNamestringrequiredName of the creator.
creatorEmailstringtagsstring[]targetAppsoneOfholdoutIDsstring[]Holdouts applied to this configuration.
teamstringteamIDstringversionnumberVersion number
checksPerHournumberrequiredstatusstringrequiredtypestringrequiredtypeReasonstringrequiredownerobjectSchema for owner data including ID, type, name. Note that if Entity is created by CONSOLE API, owner will be undefined.
Show child attributes
ownerIDstringID of the owner
ownerTypestringType of the owner (e.g., SDK_KEY or USER)
ownerNamestringThe name of the owner. This field is optional.
ownerEmailstringThe email of the owner. This field is optional.
isTemplatebooleanstore0100ExposuresbooleanWhether this gate stores 0/100 exposures for monitoring/analysis.
permalinkstringrequiredA permalink to this gate in the Statsig Console.
archivedAtnumberTimestamp (ms) of the most recent archive event when the gate is currently archived; null otherwise. May be null for gates archived before audit logging existed.
archivedByIDstringID of the user who archived this gate, when known and the gate is currently archived; null otherwise (e.g. automated archives have no user).
archivedByNamestringName of the user who archived this gate, when known and the gate is currently archived; null otherwise.
archivedByEmailstringEmail of the user who archived this gate, when known and the gate is currently archived; null otherwise.
archiveReasonstringFree-text reason supplied when the gate was most recently archived; null when the gate is not currently archived or no reason was given.
isEnabledbooleanrequiredrulesobject[]requiredShow child attributes
name[]stringrequiredThe name of this rule.
passPercentage[]numberrequiredOf the users that meet the conditions of this rule, what percent should return true.
conditions[]object[]requiredAn array of Condition objects.
Show child attributes
targetValue[]oneOfoperator[]stringfield[]stringcustomID[]stringtype[]stringrequiredenvironments[]string[]The environments this rule is enabled for.
id[]stringThe Statsig ID of this rule.
baseID[]stringThe base ID of this rule, i.e. without any added metadata. Will remain the exact same throughout
returnValue[]objectThe return value of the rule.
completedAutomatedRollouts[]object[]Read-only: Automated rollout phases that have already completed.
Show child attributes
time[]numberpassPercent[]numberrequiredpendingAutomatedRollouts[]object[]Read-only: Automated rollout phases that are scheduled but not yet complete.
Show child attributes
time[]numberpassPercent[]numberrequiredmeasureMetricLiftsbooleanmonitoringMetricsobject[]Show child attributes
name[]stringrequiredtype[]stringrequiredreviewSettingsobjectShow child attributes
requiredReviewbooleanrequiredallowedReviewersobject[]Show child attributes
id[]stringrequiredname[]stringrequiredemail[]stringrequiredreleasePipelineIDstringactiveReviewobjectShow child attributes
reviewIDstringrequiredreviewStatusstringrequireddescriptionstringrequiredWas this helpful?