Skip to main content
POST
/
console
/
v1
/
dynamic_configs
Create Dynamic Config
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": {}
  }
}

Authorizations

STATSIG-API-KEY
string
header
required

Headers

x-respect-review-settings
string

Body

application/json
name
string
required
Required string length: 3 - 100
Example:
isEnabled
boolean
default:true
description
string
Maximum length: 1000
rules
object[]
defaultValue
object
defaultValueJson5
string
idType
string
Example:
tags
string[]
creatorID
string | null
owner
object | null
Example:
creatorEmail
string | null
schema
string | null
schemaJson5
string | null
targetApps
team
string | null
teamID
string | null
releasePipelineID
string | null
id
string
Required string length: 3 - 100
isTemplate
boolean

Response

message
string
required
data
object
required