Create Gate Review
Reference for the POST /console/v1/gates/{id}/reviews endpoint of the Statsig API.
https://statsigapi.net/console/v1/gates/{id}/reviewsAuthorizations
STATSIG-API-KEYstringrequiredapiKey (header)
Path parameters
idstringrequiredBody
application/jsondescriptionstringrequiredHuman-readable description of the proposed change.
min length: 1max length: 2000reviewer_idsstring[]User IDs to request review from.
[]reviewer_group_idsstring[]Reviewer group IDs to request review from.
[]changeobjectrequiredThe proposed change. Provide exactly one of rules, is_enabled, is_archived, delete, resalt, disable_reviews_locally, team_id, release_pipeline_id, id_type, allow_self_approval, target_app_ids, owners, or allowed_reviewers.
Show child attributes
rulesobject[]Proposed full rule set for the gate. Same shape as the gate update contract.
namestringrequiredThe name of this rule.
passPercentagenumberrequiredOf the users that meet the conditions of this rule, what percent should return true.
min: 0max: 100conditionsobject[]requiredAn array of Condition objects.
targetValueoneOfnullablestring[]number[]stringnumberoperatorstringfieldstringnullablecustomIDstringnullabletypestringrequiredapp_versionbrowser_namebrowser_versioncountrycustom_fieldemailenvironment_tierfails_gatefails_segmentip_addresslocaleos_nameos_versionpasses_gatepasses_segmentpublictimeunit_iduser_iduser_agenturljavascriptdevice_modeltarget_appexperiment_groupenvironmentsstring[]The environments this rule is enabled for.
nullableidstringThe Statsig ID of this rule.
baseIDstringThe base ID of this rule, i.e. without any added metadata. Will remain the exact same throughout
returnValueobjectThe return value of the rule.
completedAutomatedRolloutsobject[]Read-only: Automated rollout phases that have already completed.
timenumberpassPercentnumberrequiredpendingAutomatedRolloutsobject[]Read-only: Automated rollout phases that are scheduled but not yet complete.
timenumberpassPercentnumberrequiredis_enabledbooleanProposed enabled state for the gate. An explicit target, not a toggle.
is_archivedbooleanProposed archived state for the gate. true archives, false unarchives.
deletebooleanDelete the gate. Set to true.
trueresaltbooleanRe-randomize the gate's salt. Set to true.
truedisable_reviews_locallybooleanStop requiring review on this gate. Set to true.
trueteam_idstringReassign the gate to this team (review type update_team).
min length: 1release_pipeline_idstringSet the gate's release pipeline (review type update_release_pipeline).
min length: 1id_typestringChange the gate's primary unit ID type (review type edit_id_type).
min length: 1allow_self_approvalbooleanWhether this gate's reviews may be self-approved (review type update_allow_self_approval).
target_app_idsstring[]Replace the gate's target applications (review type update_target_applications).
ownersobject[]Replace the gate's owners (review type update_owners).
owner_idstringrequiredUser ID (or SDK key ID) of the owner.
min length: 1owner_typestringOwner kind. Defaults to user.
usersdk_keyallowed_reviewersobjectSet who may review this gate (review type allowed_reviewers).
user_idsstring[]User IDs allowed to review. Replaces the existing set.
group_idsstring[]Reviewer group IDs allowed to review. Replaces the existing set.
Response
application/jsonmessagestringrequiredA simple string explaining the result of the operation.
dataobjectrequiredShow child attributes
review_idstringrequiredUnique ID of the review.
statusstringrequiredLifecycle status of the review.
pendingacceptedrejectedcommittedchanges_requestedpending_webhook_validationfailed_webhook_validationapproved_webhook_validationtypestringrequiredKind of change the review proposes.
rulestoggle_enabledarchivedeleteresaltdisable_reviews_locallyupdate_teamupdate_release_pipelineedit_id_typeupdate_allow_self_approvalupdate_target_applicationsupdate_ownersallowed_reviewersauthorobjectrequiredThe user who created the review.
idstringrequiredemailstringrequirednullablereviewersobject[]requiredRequested reviewers (users and groups).
idstringrequiredkindstringrequiredusergroupdescriptionstringrequiredHuman-readable description of the proposed change.
created_atstringrequiredISO-8601 timestamp of when the review was created.
Was this helpful?