Authorizations
Headers
Body
application/json
Required string length:
3 - 100Example:
Maximum length:
1000Example:
Example:
Required string length:
3 - 100curl --request POST \
--url https://statsigapi.net/console/v1/dynamic_configs \
--header 'Content-Type: application/json' \
--header 'STATSIG-API-KEY: <api-key>' \
--data '{
"name": "my_config",
"isEnabled": true,
"description": "<string>",
"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": [
"<string>"
],
"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>",
"id": "<string>",
"isTemplate": true
}'{
"message": "Dynamic Config created successfully.",
"data": {
"id": "a_dynamic_config",
"name": "a dynamic config",
"description": "helpful summary of what this dynamic config does",
"idType": "userID",
"lastModifierID": "1vaQaBoLlkauH9iiuOSBP2",
"lastModifiedTime": 1707344887865,
"lastModifierName": "CONSOLE API",
"lastModifierEmail": null,
"creatorID": "1vaQaBoLlkauH9iiuOSBP2",
"createdTime": 1707344887764,
"creatorName": "CONSOLE API",
"creatorEmail": null,
"targetApps": [],
"holdoutIDs": [],
"tags": [],
"isEnabled": true,
"rules": [],
"defaultValue": {}
}
}curl --request POST \
--url https://statsigapi.net/console/v1/dynamic_configs \
--header 'Content-Type: application/json' \
--header 'STATSIG-API-KEY: <api-key>' \
--data '{
"name": "my_config",
"isEnabled": true,
"description": "<string>",
"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": [
"<string>"
],
"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>",
"id": "<string>",
"isTemplate": true
}'{
"message": "Dynamic Config created successfully.",
"data": {
"id": "a_dynamic_config",
"name": "a dynamic config",
"description": "helpful summary of what this dynamic config does",
"idType": "userID",
"lastModifierID": "1vaQaBoLlkauH9iiuOSBP2",
"lastModifiedTime": 1707344887865,
"lastModifierName": "CONSOLE API",
"lastModifierEmail": null,
"creatorID": "1vaQaBoLlkauH9iiuOSBP2",
"createdTime": 1707344887764,
"creatorName": "CONSOLE API",
"creatorEmail": null,
"targetApps": [],
"holdoutIDs": [],
"tags": [],
"isEnabled": true,
"rules": [],
"defaultValue": {}
}
}3 - 1001000Show child attributes
Show child attributes
Show child attributes
3 - 100Was this page helpful?