Delete Dynamic Config Rule
Delete Dynamic Config Rule
https://statsigapi.net/console/v1/dynamic_configs/{id}/rule/{ruleId}Authorizations
STATSIG-API-KEYstringrequiredapiKey (header)
Path parameters
idstringrequiredDynamic Config ID
ruleIdstringrequiredRule ID
Response
application/jsonmessagestringrequiredA simple string explaining the result of the operation.
dataobjectrequiredShow child attributes
idstringrequiredID
namestringOptional name for the configuration.
my_configmin length: 3max length: 100pattern: ^[a-zA-Z0-9_\-. ]*$idTypestringThe type of ID which the dynamic config is based on.
userIDdescriptionstringrequiredA brief summary of what the dynamic config is being used for
helpful summary of what this dynamic config doesmax length: 1000lastModifierIDstringrequiredID of the last modifier.
nullablelastModifiedTimenumberrequiredTime of the last modification.
format: doublenullablelastModifierEmailstringrequiredEmail of the last modifier.
nullablelastModifierNamestringrequiredName of the last modifier.
nullablecreatorIDstringnullablecreatedTimenumberrequiredTimestamp when the entity was created.
format: doublecreatorNamestringrequiredName of the creator.
nullablecreatorEmailstringnullabletagsstring[]The list of tag names attached to the dynamic config
["a tag"]targetAppsoneOfstringstring[]holdoutIDsstring[]Holdouts applied to this configuration.
teamstringThe team name associated with the dynamic config, Enterprise only.
nullableteamIDstringThe team ID associated with the dynamic config, Enterprise only.
nullableversionnumberVersion number
format: doubleisEnabledbooleanrequiredIs the dynamic config enabled
truerulesobject[]requiredAn array of Rule objects
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[]nullableidstringThe Statsig ID of this rule.
baseIDstringThe base ID of this rule, i.e. without any added metadata. Will remain the exact same throughout
returnValueobjectcompletedAutomatedRolloutsobject[]Read-only: Automated rollout phases that have already completed.
timenumberpassPercentnumberrequiredpendingAutomatedRolloutsobject[]Read-only: Automated rollout phases that are scheduled but not yet complete.
timenumberpassPercentnumberrequiredreturnValueJson5stringvariantsobject[]idstringnamestringrequiredpassPercentagenumberrequiredmin: 0max: 100returnValueobjectreturnValueJson5stringdefaultValueobjectThe fallback JSON object when no rules are triggered
defaultValueJson5stringCan include comments. If provided with defaultValue, must parse to the same JSON
ownerobjectSchema for owner data including ID, type, name. Note that if Entity is created by CONSOLE API, owner will be undefined.
{"ownerID":"user123","ownerType":"USER","ownerName":"John Doe","ownerEmail":"owner123@test.com"}nullableownerIDstringID of the owner
abc123ownerTypestringType of the owner (e.g., SDK_KEY or USER)
USERownerNamestringThe name of the owner. This field is optional.
John DoeownerEmailstringThe email of the owner. This field is optional.
schemastringA schema using JSON Schema Draft 2020-12 to enforce return values of this dynamic config's rules.
nullableschemaJson5stringschema except with Json5 comments. Optional and should parse to same json as schema.
nullablereleasePipelineIDstringThe release pipeline ID associated with the dynamic config
nullableisTemplatebooleanstatusstringEnabledDisabledArchivedchecksPerHournumberformat: doublenullablepermalinkstringrequiredA permalink to this dynamic config in the Statsig Console.
format: uritypestringrequiredThe lifecycle type of the config (TEMPORARY, PERMANENT, or STALE). STALE classification depends on the nightly stale detection batch job having run; a config not yet processed reads as TEMPORARY.
PERMANENTTEMPORARYSTALETEMPLATEtypeReasonstringrequiredThe reason for the current type classification. Depends on the nightly stale detection batch job having run.
NONESTALE_PROBABLY_DEAD_CHECKSTALE_NO_RULESSTALE_PROBABLY_FORGOTTENSTALE_PROBABLY_LAUNCHEDSTALE_PROBABLY_UNLAUNCHEDisPermanentbooleanrequiredWhether the config has been explicitly marked as long-lived.
Was this helpful?