Authorizations
Headers
Path Parameters
Query Parameters
Example:
Body
application/json
Required string length:
3 - 100Example:
Maximum length:
1000Example:
Example:
Example:
Example:
curl --request PATCH \
--url https://statsigapi.net/console/v1/dynamic_configs/{id} \
--header 'Content-Type: application/json' \
--header 'STATSIG-API-KEY: <api-key>' \
--data '{
"name": "my_config",
"isEnabled": true,
"description": "helpful summary of what this dynamic config does",
"rules": [
{
"name": "<string>",
"passPercentage": 50,
"conditions": [
{
"targetValue": [
"<string>"
],
"operator": "<string>",
"field": "<string>",
"customID": "<string>",
"type": "app_version"
}
],
"environments": [
"<string>"
],
"id": "<string>",
"baseID": "<string>",
"returnValue": {},
"returnValueJson5": "<string>",
"variants": [
{
"id": "<string>",
"name": "<string>",
"passPercentage": 50,
"returnValue": {},
"returnValueJson5": "<string>"
}
]
}
],
"defaultValue": {},
"defaultValueJson5": "<string>",
"idType": "userID",
"tags": [
"a tag"
],
"creatorID": "<string>",
"owner": {
"ownerID": "user123",
"ownerType": "USER",
"ownerName": "John Doe",
"ownerEmail": "[email protected]"
},
"creatorEmail": "<string>",
"schema": "<string>",
"schemaJson5": "<string>",
"targetApps": "<string>",
"team": "<string>",
"teamID": "<string>",
"releasePipelineID": "<string>"
}'{
"message": "Dynamic config updated successfully.",
"data": {
"id": "a_dynamic_config",
"description": "helpful summary of what this dynamic config does",
"idType": "userID",
"creatorEmail": "[email protected]",
"creatorName": "John Smith",
"createdTime": 1674769467002,
"lastModifierID": "1vaQaBoLlkauH9iiuOSBP2",
"lastModifierName": "CONSOLE API",
"lastModifiedTime": 1707344887865,
"lastModifierEmail": null,
"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
},
"completedAutomatedRollouts": [],
"pendingAutomatedRollouts": []
}
],
"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 '{
"name": "my_config",
"isEnabled": true,
"description": "helpful summary of what this dynamic config does",
"rules": [
{
"name": "<string>",
"passPercentage": 50,
"conditions": [
{
"targetValue": [
"<string>"
],
"operator": "<string>",
"field": "<string>",
"customID": "<string>",
"type": "app_version"
}
],
"environments": [
"<string>"
],
"id": "<string>",
"baseID": "<string>",
"returnValue": {},
"returnValueJson5": "<string>",
"variants": [
{
"id": "<string>",
"name": "<string>",
"passPercentage": 50,
"returnValue": {},
"returnValueJson5": "<string>"
}
]
}
],
"defaultValue": {},
"defaultValueJson5": "<string>",
"idType": "userID",
"tags": [
"a tag"
],
"creatorID": "<string>",
"owner": {
"ownerID": "user123",
"ownerType": "USER",
"ownerName": "John Doe",
"ownerEmail": "[email protected]"
},
"creatorEmail": "<string>",
"schema": "<string>",
"schemaJson5": "<string>",
"targetApps": "<string>",
"team": "<string>",
"teamID": "<string>",
"releasePipelineID": "<string>"
}'{
"message": "Dynamic config updated successfully.",
"data": {
"id": "a_dynamic_config",
"description": "helpful summary of what this dynamic config does",
"idType": "userID",
"creatorEmail": "[email protected]",
"creatorName": "John Smith",
"createdTime": 1674769467002,
"lastModifierID": "1vaQaBoLlkauH9iiuOSBP2",
"lastModifierName": "CONSOLE API",
"lastModifiedTime": 1707344887865,
"lastModifierEmail": null,
"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
},
"completedAutomatedRollouts": [],
"pendingAutomatedRollouts": []
}
],
"defaultValue": {
"key": "the default value"
},
"tags": [
"a tag"
]
}
}3 - 1001000Show child attributes
Show child attributes
Show child attributes
Was this page helpful?