Dynamic Configs

Create Dynamic Config

post/console/v1/dynamic_configs

Request body

namestring required

The dynamic config display name

isEnabledboolean

Is the dynamic config enabled

descriptionstring
defaultValueobject

The fallback JSON object when no rules are triggered

defaultValueJson5string

Can include comments. If provided with defaultValue, must parse to the same JSON

idTypestring

The type of ID which the dynamic config is based on.

tagsstring[]

The list of tag names attached to the dynamic config

creatorIDstring nullable
creatorEmailstring nullable
schemastring nullable

A schema using JSON Schema Draft 2020-12 to enforce return values of this dynamic config's rules.

schemaJson5string nullable

schema except with Json5 comments. Optional and should parse to same json as schema.

teamstring nullable

The team name associated with the dynamic config, Enterprise only.

teamIDstring nullable

The team ID associated with the dynamic config, Enterprise only.

releasePipelineIDstring nullable

The release pipeline ID associated with the dynamic config

idstring

The dynamic config name ID

isTemplateboolean

Example request

{
  "name": "my_config",
  "idType": "userID",
  "owner": {
    "ownerID": "user123",
    "ownerType": "USER",
    "ownerName": "John Doe",
    "ownerEmail": "owner123@test.com"
  }
}

Response

Create Dynamic Config

messagestring required

A simple string explaining the result of the operation.

Example response

{
  "message": "Dynamic Config created successfully.",
  "data": {
    "id": "a_dynamic_config",
    "permalink": "https://console.statsig.com/company_id/dynamic_configs/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": [],
    "type": "TEMPORARY",
    "typeReason": "NONE",
    "isPermanent": false,
    "isEnabled": true,
    "rules": [],
    "defaultValue": {}
  }
}

Changes

Changed in 1 of the 8 revisions of this API.12626

  • 1fd471fa03cc12626See the full diff
    • request property rules/items/conditions/items/operator was restricted to a list of enum values

      request-property-became-enum

    • added the new after enum value to the allOf[subschema #2]/data/rules/items/conditions/items/operator response property for the response status 201

      response-property-enum-value-added

    • added the new any enum value to the allOf[subschema #2]/data/rules/items/conditions/items/operator response property for the response status 201

      response-property-enum-value-added

    • added the new any_case_sensitive enum value to the allOf[subschema #2]/data/rules/items/conditions/items/operator response property for the response status 201

      response-property-enum-value-added

    • added the new array_contains_all enum value to the allOf[subschema #2]/data/rules/items/conditions/items/operator response property for the response status 201

      response-property-enum-value-added

    • added the new array_contains_any enum value to the allOf[subschema #2]/data/rules/items/conditions/items/operator response property for the response status 201

      response-property-enum-value-added

    • added the new array_contains_none enum value to the allOf[subschema #2]/data/rules/items/conditions/items/operator response property for the response status 201

      response-property-enum-value-added

    • added the new before enum value to the allOf[subschema #2]/data/rules/items/conditions/items/operator response property for the response status 201

      response-property-enum-value-added

    • added the new encoded_any enum value to the allOf[subschema #2]/data/rules/items/conditions/items/operator response property for the response status 201

      response-property-enum-value-added

    • added the new gt enum value to the allOf[subschema #2]/data/rules/items/conditions/items/operator response property for the response status 201

      response-property-enum-value-added

    • added the new gte enum value to the allOf[subschema #2]/data/rules/items/conditions/items/operator response property for the response status 201

      response-property-enum-value-added

    • added the new is_not_null enum value to the allOf[subschema #2]/data/rules/items/conditions/items/operator response property for the response status 201

      response-property-enum-value-added

    • added the new is_null enum value to the allOf[subschema #2]/data/rules/items/conditions/items/operator response property for the response status 201

      response-property-enum-value-added

    • added the new lt enum value to the allOf[subschema #2]/data/rules/items/conditions/items/operator response property for the response status 201

      response-property-enum-value-added

    • added the new lte enum value to the allOf[subschema #2]/data/rules/items/conditions/items/operator response property for the response status 201

      response-property-enum-value-added

    • added the new none enum value to the allOf[subschema #2]/data/rules/items/conditions/items/operator response property for the response status 201

      response-property-enum-value-added

    • added the new none_case_sensitive enum value to the allOf[subschema #2]/data/rules/items/conditions/items/operator response property for the response status 201

      response-property-enum-value-added

    • added the new not_array_contains_all enum value to the allOf[subschema #2]/data/rules/items/conditions/items/operator response property for the response status 201

      response-property-enum-value-added

    • added the new on enum value to the allOf[subschema #2]/data/rules/items/conditions/items/operator response property for the response status 201

      response-property-enum-value-added

    • added the new str_contains_any enum value to the allOf[subschema #2]/data/rules/items/conditions/items/operator response property for the response status 201

      response-property-enum-value-added

    • added the new str_contains_none enum value to the allOf[subschema #2]/data/rules/items/conditions/items/operator response property for the response status 201

      response-property-enum-value-added

    • added the new str_matches enum value to the allOf[subschema #2]/data/rules/items/conditions/items/operator response property for the response status 201

      response-property-enum-value-added

    • added the new version_eq enum value to the allOf[subschema #2]/data/rules/items/conditions/items/operator response property for the response status 201

      response-property-enum-value-added

    • added the new version_gt enum value to the allOf[subschema #2]/data/rules/items/conditions/items/operator response property for the response status 201

      response-property-enum-value-added

    • added the new version_gte enum value to the allOf[subschema #2]/data/rules/items/conditions/items/operator response property for the response status 201

      response-property-enum-value-added

    • added the new version_lt enum value to the allOf[subschema #2]/data/rules/items/conditions/items/operator response property for the response status 201

      response-property-enum-value-added

    • added the new version_lte enum value to the allOf[subschema #2]/data/rules/items/conditions/items/operator response property for the response status 201

      response-property-enum-value-added

    • added the new after enum value to the request property rules/items/conditions/items/operator

      request-property-enum-value-added

    • added the new any enum value to the request property rules/items/conditions/items/operator

      request-property-enum-value-added

    • added the new any_case_sensitive enum value to the request property rules/items/conditions/items/operator

      request-property-enum-value-added

    • added the new array_contains_all enum value to the request property rules/items/conditions/items/operator

      request-property-enum-value-added

    • added the new array_contains_any enum value to the request property rules/items/conditions/items/operator

      request-property-enum-value-added

    • added the new array_contains_none enum value to the request property rules/items/conditions/items/operator

      request-property-enum-value-added

    • added the new before enum value to the request property rules/items/conditions/items/operator

      request-property-enum-value-added

    • added the new encoded_any enum value to the request property rules/items/conditions/items/operator

      request-property-enum-value-added

    • added the new gt enum value to the request property rules/items/conditions/items/operator

      request-property-enum-value-added

    • added the new gte enum value to the request property rules/items/conditions/items/operator

      request-property-enum-value-added

    • added the new is_not_null enum value to the request property rules/items/conditions/items/operator

      request-property-enum-value-added

    • added the new is_null enum value to the request property rules/items/conditions/items/operator

      request-property-enum-value-added

    • added the new lt enum value to the request property rules/items/conditions/items/operator

      request-property-enum-value-added

    • added the new lte enum value to the request property rules/items/conditions/items/operator

      request-property-enum-value-added

    • added the new none enum value to the request property rules/items/conditions/items/operator

      request-property-enum-value-added

    • added the new none_case_sensitive enum value to the request property rules/items/conditions/items/operator

      request-property-enum-value-added

    • added the new not_array_contains_all enum value to the request property rules/items/conditions/items/operator

      request-property-enum-value-added

    • added the new on enum value to the request property rules/items/conditions/items/operator

      request-property-enum-value-added

    • added the new str_contains_any enum value to the request property rules/items/conditions/items/operator

      request-property-enum-value-added

    • added the new str_contains_none enum value to the request property rules/items/conditions/items/operator

      request-property-enum-value-added

    • added the new str_matches enum value to the request property rules/items/conditions/items/operator

      request-property-enum-value-added

    • added the new version_eq enum value to the request property rules/items/conditions/items/operator

      request-property-enum-value-added

    • added the new version_gt enum value to the request property rules/items/conditions/items/operator

      request-property-enum-value-added

    • added the new version_gte enum value to the request property rules/items/conditions/items/operator

      request-property-enum-value-added

    • added the new version_lt enum value to the request property rules/items/conditions/items/operator

      request-property-enum-value-added

    • added the new version_lte enum value to the request property rules/items/conditions/items/operator

      request-property-enum-value-added