curl --request PATCH \
--url https://statsigapi.net/console/v1/dynamic_configs/{id} \
--header 'Content-Type: application/json' \
--header 'STATSIG-API-KEY: <api-key>' \
--data '
{
"isEnabled": true,
"description": "helpful summary of what this dynamic config does",
"rules": [
{
"name": "<string>",
"passPercentage": 50,
"conditions": [
{
"type": "app_version",
"targetValue": [
"<string>"
],
"operator": "<string>",
"field": "<string>",
"customID": "<string>"
}
],
"environments": [
"<string>"
],
"id": "<string>",
"baseID": "<string>",
"returnValue": {},
"returnValueJson5": "<string>"
}
],
"defaultValue": {},
"defaultValueJson5": "<string>",
"idType": "userID",
"tags": [
"a tag"
],
"creatorID": "<string>",
"owner": {
"ownerID": "user123",
"ownerType": "USER",
"ownerName": "John Doe",
"ownerEmail": "owner123@test.com"
},
"creatorEmail": "<string>",
"schema": "<string>",
"schemaJson5": "<string>",
"targetApps": "<string>",
"team": "<string>",
"teamID": "<string>",
"precommitWebhook": {
"url": "<string>",
"internalStatusUrl": "<string>"
}
}
'{
"message": "Dynamic config updated successfully.",
"data": {
"id": "a_dynamic_config",
"description": "helpful summary of what this dynamic config does",
"lastModifierID": "1vaQaBoLlkauH9iiuOSBP2",
"lastModifierName": "CONSOLE API",
"creatorEmail": "johnsmith@mydomain.com",
"creatorName": "John Smith",
"createdTime": 1674769467002,
"holdoutIDs": [],
"isEnabled": true,
"rules": [
{
"name": "All Conditions",
"id": "38ttpCpzrQFTMKcqFKk02l:10.00:1",
"baseID": "38ttpCpzrQFTMKcqFKk02l",
"passPercentage": 10,
"conditions": [
{
"type": "public",
"operator": "string",
"targetValue": 0,
"field": "string",
"customID": "string"
}
],
"returnValue": {
"key": true
}
}
],
"defaultValue": {
"key": "the default value"
},
"tags": [
"a tag"
]
}
}curl --request PATCH \
--url https://statsigapi.net/console/v1/dynamic_configs/{id} \
--header 'Content-Type: application/json' \
--header 'STATSIG-API-KEY: <api-key>' \
--data '
{
"isEnabled": true,
"description": "helpful summary of what this dynamic config does",
"rules": [
{
"name": "<string>",
"passPercentage": 50,
"conditions": [
{
"type": "app_version",
"targetValue": [
"<string>"
],
"operator": "<string>",
"field": "<string>",
"customID": "<string>"
}
],
"environments": [
"<string>"
],
"id": "<string>",
"baseID": "<string>",
"returnValue": {},
"returnValueJson5": "<string>"
}
],
"defaultValue": {},
"defaultValueJson5": "<string>",
"idType": "userID",
"tags": [
"a tag"
],
"creatorID": "<string>",
"owner": {
"ownerID": "user123",
"ownerType": "USER",
"ownerName": "John Doe",
"ownerEmail": "owner123@test.com"
},
"creatorEmail": "<string>",
"schema": "<string>",
"schemaJson5": "<string>",
"targetApps": "<string>",
"team": "<string>",
"teamID": "<string>",
"precommitWebhook": {
"url": "<string>",
"internalStatusUrl": "<string>"
}
}
'{
"message": "Dynamic config updated successfully.",
"data": {
"id": "a_dynamic_config",
"description": "helpful summary of what this dynamic config does",
"lastModifierID": "1vaQaBoLlkauH9iiuOSBP2",
"lastModifierName": "CONSOLE API",
"creatorEmail": "johnsmith@mydomain.com",
"creatorName": "John Smith",
"createdTime": 1674769467002,
"holdoutIDs": [],
"isEnabled": true,
"rules": [
{
"name": "All Conditions",
"id": "38ttpCpzrQFTMKcqFKk02l:10.00:1",
"baseID": "38ttpCpzrQFTMKcqFKk02l",
"passPercentage": 10,
"conditions": [
{
"type": "public",
"operator": "string",
"targetValue": 0,
"field": "string",
"customID": "string"
}
],
"returnValue": {
"key": true
}
}
],
"defaultValue": {
"key": "the default value"
},
"tags": [
"a tag"
]
}
}Optional header to respect review settings for mutation endpoints.
id
Is the dynamic config enabled
A brief summary of what the dynamic config is being used for
1000"helpful summary of what this dynamic config does"
An array of Rule objects
Show child attributes
The name of this rule.
Of the users that meet the conditions of this rule, what percent should return true.
0 <= x <= 100Must be a multiple of 0.01An array of Condition objects.
Show child attributes
app_version, browser_name, browser_version, country, custom_field, email, environment_tier, fails_gate, fails_segment, ip_address, locale, os_name, os_version, passes_gate, passes_segment, public, time, unit_id, user_id, url, javascript, device_model, target_app The Statsig ID of this rule.
The base ID of this rule, i.e. without any added metadata. Will remain the exact same throughout
Can include comments. If provided with defaultValue, must parse to the same JSON
The type of ID which the dynamic config is based on.
"userID"
The list of tag names attached to the dynamic config
["a tag"]Schema for owner data including ID, type, name. Note that if Entity is created by CONSOLE API, owner will be undefined.
Show child attributes
{
"ownerID": "user123",
"ownerType": "USER",
"ownerName": "John Doe",
"ownerEmail": "owner123@test.com"
}A schema using JSON Schema Draft 2020-12 to enforce return values of this dynamic config's rules.
schema except with Json5 comments. Optional and should parse to same json as schema.
The team name associated with the dynamic config, Enterprise only.
The team ID associated with the dynamic config, Enterprise only.
Partially Update Dynamic Config Response
A simple string explaining the result of the operation.
A single result.
Show child attributes
ID
A brief summary of what the dynamic config is being used for
1000"helpful summary of what this dynamic config does"
ID of the last modifier.
Time of the last modification.
Email of the last modifier.
Name of the last modifier.
Timestamp when the entity was created.
Name of the creator.
Is the dynamic config enabled
An array of Rule objects
Show child attributes
The name of this rule.
Of the users that meet the conditions of this rule, what percent should return true.
0 <= x <= 100Must be a multiple of 0.01An array of Condition objects.
Show child attributes
app_version, browser_name, browser_version, country, custom_field, email, environment_tier, fails_gate, fails_segment, ip_address, locale, os_name, os_version, passes_gate, passes_segment, public, time, unit_id, user_id, url, javascript, device_model, target_app The Statsig ID of this rule.
The base ID of this rule, i.e. without any added metadata. Will remain the exact same throughout
Optional name for the configuration.
The type of ID which the dynamic config is based on.
"userID"
The list of tag names attached to the dynamic config
["a tag"]Holdouts applied to this configuration.
The team name associated with the dynamic config, Enterprise only.
The team ID associated with the dynamic config, Enterprise only.
Version number
Can include comments. If provided with defaultValue, must parse to the same JSON
Schema for owner data including ID, type, name. Note that if Entity is created by CONSOLE API, owner will be undefined.
Show child attributes
ID of the owner
"abc123"
Type of the owner (e.g., SDK_KEY or USER)
"USER"
The name of the owner. This field is optional.
"John Doe"
The email of the owner. This field is optional.
{
"ownerID": "user123",
"ownerType": "USER",
"ownerName": "John Doe",
"ownerEmail": "owner123@test.com"
}A schema using JSON Schema Draft 2020-12 to enforce return values of this dynamic config's rules.
schema except with Json5 comments. Optional and should parse to same json as schema.