Add Gate Rule
Path parameters
id
Query parameters
When "true", populate archivedAt / archivedBy* / archiveReason on the gate when it is currently archived. When omitted or "false", those fields are absent from the response.
Request body
Response
Add Gate Rule Response
Example response
{
"message": "Gate rules added successfully.",
"data": {
"id": "gate1",
"name": "gate1",
"description": "",
"idType": "userID",
"lastModifierID": "65pqqzT46Kl7lHnd2JCmgH",
"lastModifiedTime": 1721435847251,
"lastModifierName": "CONSOLE API",
"lastModifierEmail": null,
"creatorID": "3exemrfZ5pwOk6qyDH0dhP",
"createdTime": 1721242681598,
"creatorName": "Jathu Theivikaran",
"creatorEmail": "jathurshan@statsig.com",
"targetApps": [],
"holdoutIDs": [],
"tags": [],
"team": null,
"isEnabled": true,
"status": "In Progress",
"rules": [
{
"id": "LcDWo6mFrWaS3DtoKtEAfg1",
"baseID": "LcDWo6mFrWaS3DtoKtEAfg1",
"name": "NA",
"passPercentage": 90,
"conditions": [
{
"type": "country",
"targetValue": [
"CA"
],
"operator": "any"
}
],
"environments": null
},
{
"id": "1RoFk5jjnNpF2HZD5oQOeY",
"baseID": "1RoFk5jjnNpF2HZD5oQOeY",
"name": "NA2",
"passPercentage": 80,
"conditions": [
{
"type": "country",
"targetValue": [
"US"
],
"operator": "any"
}
],
"environments": null
}
],
"checksPerHour": 0,
"type": "TEMPORARY",
"typeReason": "NONE",
"reviewSettings": {
"requiredReview": false,
"allowedReviewers": []
},
"measureMetricLifts": true
}
}Changes
Changed in 1 of the 8 revisions of this API.12626
- ▲
request property
conditions/items/operatorwas restricted to a list of enum valuesrequest-property-became-enum
- ●
added the new
afterenum value to theallOf[subschema #2]/data/rules/items/conditions/items/operatorresponse property for the response status200response-property-enum-value-added
- ●
added the new
anyenum value to theallOf[subschema #2]/data/rules/items/conditions/items/operatorresponse property for the response status200response-property-enum-value-added
- ●
added the new
any_case_sensitiveenum value to theallOf[subschema #2]/data/rules/items/conditions/items/operatorresponse property for the response status200response-property-enum-value-added
- ●
added the new
array_contains_allenum value to theallOf[subschema #2]/data/rules/items/conditions/items/operatorresponse property for the response status200response-property-enum-value-added
- ●
added the new
array_contains_anyenum value to theallOf[subschema #2]/data/rules/items/conditions/items/operatorresponse property for the response status200response-property-enum-value-added
- ●
added the new
array_contains_noneenum value to theallOf[subschema #2]/data/rules/items/conditions/items/operatorresponse property for the response status200response-property-enum-value-added
- ●
added the new
beforeenum value to theallOf[subschema #2]/data/rules/items/conditions/items/operatorresponse property for the response status200response-property-enum-value-added
- ●
added the new
encoded_anyenum value to theallOf[subschema #2]/data/rules/items/conditions/items/operatorresponse property for the response status200response-property-enum-value-added
- ●
added the new
gtenum value to theallOf[subschema #2]/data/rules/items/conditions/items/operatorresponse property for the response status200response-property-enum-value-added
- ●
added the new
gteenum value to theallOf[subschema #2]/data/rules/items/conditions/items/operatorresponse property for the response status200response-property-enum-value-added
- ●
added the new
is_not_nullenum value to theallOf[subschema #2]/data/rules/items/conditions/items/operatorresponse property for the response status200response-property-enum-value-added
- ●
added the new
is_nullenum value to theallOf[subschema #2]/data/rules/items/conditions/items/operatorresponse property for the response status200response-property-enum-value-added
- ●
added the new
ltenum value to theallOf[subschema #2]/data/rules/items/conditions/items/operatorresponse property for the response status200response-property-enum-value-added
- ●
added the new
lteenum value to theallOf[subschema #2]/data/rules/items/conditions/items/operatorresponse property for the response status200response-property-enum-value-added
- ●
added the new
noneenum value to theallOf[subschema #2]/data/rules/items/conditions/items/operatorresponse property for the response status200response-property-enum-value-added
- ●
added the new
none_case_sensitiveenum value to theallOf[subschema #2]/data/rules/items/conditions/items/operatorresponse property for the response status200response-property-enum-value-added
- ●
added the new
not_array_contains_allenum value to theallOf[subschema #2]/data/rules/items/conditions/items/operatorresponse property for the response status200response-property-enum-value-added
- ●
added the new
onenum value to theallOf[subschema #2]/data/rules/items/conditions/items/operatorresponse property for the response status200response-property-enum-value-added
- ●
added the new
str_contains_anyenum value to theallOf[subschema #2]/data/rules/items/conditions/items/operatorresponse property for the response status200response-property-enum-value-added
- ●
added the new
str_contains_noneenum value to theallOf[subschema #2]/data/rules/items/conditions/items/operatorresponse property for the response status200response-property-enum-value-added
- ●
added the new
str_matchesenum value to theallOf[subschema #2]/data/rules/items/conditions/items/operatorresponse property for the response status200response-property-enum-value-added
- ●
added the new
version_eqenum value to theallOf[subschema #2]/data/rules/items/conditions/items/operatorresponse property for the response status200response-property-enum-value-added
- ●
added the new
version_gtenum value to theallOf[subschema #2]/data/rules/items/conditions/items/operatorresponse property for the response status200response-property-enum-value-added
- ●
added the new
version_gteenum value to theallOf[subschema #2]/data/rules/items/conditions/items/operatorresponse property for the response status200response-property-enum-value-added
- ●
added the new
version_ltenum value to theallOf[subschema #2]/data/rules/items/conditions/items/operatorresponse property for the response status200response-property-enum-value-added
- ●
added the new
version_lteenum value to theallOf[subschema #2]/data/rules/items/conditions/items/operatorresponse property for the response status200response-property-enum-value-added
- ○
added the new
afterenum value to the request propertyconditions/items/operatorrequest-property-enum-value-added
- ○
added the new
anyenum value to the request propertyconditions/items/operatorrequest-property-enum-value-added
- ○
added the new
any_case_sensitiveenum value to the request propertyconditions/items/operatorrequest-property-enum-value-added
- ○
added the new
array_contains_allenum value to the request propertyconditions/items/operatorrequest-property-enum-value-added
- ○
added the new
array_contains_anyenum value to the request propertyconditions/items/operatorrequest-property-enum-value-added
- ○
added the new
array_contains_noneenum value to the request propertyconditions/items/operatorrequest-property-enum-value-added
- ○
added the new
beforeenum value to the request propertyconditions/items/operatorrequest-property-enum-value-added
- ○
added the new
encoded_anyenum value to the request propertyconditions/items/operatorrequest-property-enum-value-added
- ○
added the new
gtenum value to the request propertyconditions/items/operatorrequest-property-enum-value-added
- ○
added the new
gteenum value to the request propertyconditions/items/operatorrequest-property-enum-value-added
- ○
added the new
is_not_nullenum value to the request propertyconditions/items/operatorrequest-property-enum-value-added
- ○
added the new
is_nullenum value to the request propertyconditions/items/operatorrequest-property-enum-value-added
- ○
added the new
ltenum value to the request propertyconditions/items/operatorrequest-property-enum-value-added
- ○
added the new
lteenum value to the request propertyconditions/items/operatorrequest-property-enum-value-added
- ○
added the new
noneenum value to the request propertyconditions/items/operatorrequest-property-enum-value-added
- ○
added the new
none_case_sensitiveenum value to the request propertyconditions/items/operatorrequest-property-enum-value-added
- ○
added the new
not_array_contains_allenum value to the request propertyconditions/items/operatorrequest-property-enum-value-added
- ○
added the new
onenum value to the request propertyconditions/items/operatorrequest-property-enum-value-added
- ○
added the new
str_contains_anyenum value to the request propertyconditions/items/operatorrequest-property-enum-value-added
- ○
added the new
str_contains_noneenum value to the request propertyconditions/items/operatorrequest-property-enum-value-added
- ○
added the new
str_matchesenum value to the request propertyconditions/items/operatorrequest-property-enum-value-added
- ○
added the new
version_eqenum value to the request propertyconditions/items/operatorrequest-property-enum-value-added
- ○
added the new
version_gtenum value to the request propertyconditions/items/operatorrequest-property-enum-value-added
- ○
added the new
version_gteenum value to the request propertyconditions/items/operatorrequest-property-enum-value-added
- ○
added the new
version_ltenum value to the request propertyconditions/items/operatorrequest-property-enum-value-added
- ○
added the new
version_lteenum value to the request propertyconditions/items/operatorrequest-property-enum-value-added
- ▲