statsig Dynamic Configs API
Manage dynamic configurations with full CRUD operations for server-driven configuration values.
Operations 31
Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay
Ask an LLM
“Which dynamic configs exist in my Statsig project?”
“Can I page through all our dynamic configs a few at a time?”
Tell an agent
List all dynamic configs in my project.
Show page {page} of dynamic configs with {limit} per page.
Ask an LLM
“How do I create a new dynamic config with default values?”
“Can I tag a dynamic config when I first create it?”
Tell an agent
Create a dynamic config named {name}.
Create dynamic config {name} with default values {defaultValue}.
Ask an LLM
“What default values and conditions does a particular dynamic config have?”
“Can I look up the full definition of one dynamic config by name?”
Tell an agent
Show me the full definition of dynamic config {id}.
Get the defaults and rules for dynamic config {id}.
PATCH
/dynamic_configs/{id}
Update fields on an existing dynamic config · Partially update a dynamic config
#
Ask an LLM
“Can I turn off an existing dynamic config without changing its rules?”
“How do I change the default values of a dynamic config that already exists?”
Tell an agent
Disable dynamic config {id} by setting enabled to {isEnabled}.
Change the defaults of existing dynamic config {id} to {defaultValue}.
Ask an LLM
“How do I permanently remove a dynamic config we no longer use?”
“Is deleting a dynamic config permanent?”
Tell an agent destructive · confirm first
Delete dynamic config {id}.
Permanently remove the dynamic config named {id} from the project.
Ask an LLM
“What targeting rules are configured on a given dynamic config?”
“Which rules decide the values a dynamic config returns?”
Tell an agent
List only the rules on dynamic config {id}.
Show the targeting rules for dynamic config {id}.
Ask an LLM
“What config values would a specific user receive from a dynamic config?”
“Does evaluating a config for a user log an exposure event?”
Tell an agent
Evaluate config {configName} for user {user} and return their values.
Get the values user {user} receives from config {configName}.
GET
/console/v1/dynamic_configs
Filter dynamic configs by team, tag or lifecycle · List Dynamic Configs
#
Ask an LLM
“Which of our dynamic configs are flagged as stale by the nightly check?”
“Can I filter dynamic configs by owning team or by tag?”
Tell an agent
List dynamic configs tagged {tags}.
Show dynamic configs owned by team {teamID} with lifecycle type {type}.
POST
/console/v1/dynamic_configs
Create a dynamic config with schema and rules · Create Dynamic Config
#
Ask an LLM
“Can a new dynamic config enforce a JSON schema on the values it returns?”
“Which ID type should a new dynamic config be keyed on?”
Tell an agent
Create dynamic config {name} keyed on {idType} with schema {schema}.
Create dynamic config {name} for team {teamID} with rules {rules} and fallback {defaultValue}.
GET
/console/v1/dynamic_configs/{id}
Get a dynamic config via the Console API v1 · Get Dynamic Config
#
Ask an LLM
“Can the Console API v1 return a single dynamic config with its schema and target apps?”
“Who owns a given dynamic config and which team is it assigned to?”
Tell an agent
Fetch dynamic config {id} from the v1 console, including owner and schema.
Look up who owns dynamic config {id} and its target apps.
POST
/console/v1/dynamic_configs/{id}
Replace a dynamic config's full definition · Fully Update Dynamic Config
#
Ask an LLM
“Can I overwrite a dynamic config's rules, description and enabled state in one full replace?”
“Is there a dry run to check a full dynamic config update before saving it?”
Tell an agent
Fully replace dynamic config {id} with rules {rules}, description {description}, enabled {isEnabled}.
Validate without saving a full replacement of dynamic config {id} using rules {rules}, dry run {dryRun}.
PATCH
/console/v1/dynamic_configs/{id}
Patch selected fields of a dynamic config · Partially Update Dynamic Config
#
Ask an LLM
“Can I change just the tags or owner of a dynamic config without resending its rules?”
“Can I move a dynamic config to another team with a partial update?”
Tell an agent
Patch dynamic config {id} to use tags {tags}.
Reassign dynamic config {id} to team {teamID} with a partial update.
DELETE
/console/v1/dynamic_configs/{id}
Delete a dynamic config through the Console API v1 · Delete Dynamic Config
#
Ask an LLM
“Can the v1 console endpoint delete a dynamic config outright instead of archiving it?”
“Which Console API v1 call removes a dynamic config for good?”
Tell an agent destructive · confirm first
Delete dynamic config {id} using the v1 console endpoint.
Remove dynamic config {id} for good via Console API v1.
Ask an LLM
“Can I archive a dynamic config we've stopped using without deleting it?”
“Is there a way to force-archive a dynamic config and record why?”
Tell an agent
Archive dynamic config {id} because {archiveReason}.
Force-archive dynamic config {id} with force flag {forceArchive}.
Ask an LLM
“Can I switch off a dynamic config with a single call?”
“Is there a dedicated endpoint to disable a dynamic config without editing it?”
Tell an agent
Disable dynamic config {id}.
Turn off dynamic config {id} right now.
GET
/console/v1/dynamic_configs/{id}/eligible_reviewers
List who can review a dynamic config change · Get Eligible Reviewers
#
Ask an LLM
“Who is allowed to approve changes to a particular dynamic config?”
“Which teammates can I pick as reviewers for a dynamic config?”
Tell an agent
List eligible reviewers for dynamic config {id}.
Show who can review changes to dynamic config {id}.
Ask an LLM
“Can I turn a disabled dynamic config back on?”
“Is there a one-step call to re-enable a dynamic config?”
Tell an agent
Enable dynamic config {id}.
Switch dynamic config {id} back on.
GET
/console/v1/dynamic_configs/{id}/reviews
List change reviews on a dynamic config · List Dynamic Config Reviews
#
Ask an LLM
“What pending change reviews exist for a dynamic config?”
“Can I page through the review history of a dynamic config?”
Tell an agent
List change reviews for dynamic config {id}.
Show page {page} of reviews on dynamic config {id}, {limit} per page.
POST
/console/v1/dynamic_configs/{id}/reviews
Propose a dynamic config change for review · Create Dynamic Config Review
#
Ask an LLM
“Can I submit a dynamic config change for approval instead of applying it directly?”
“Which reviewers or reviewer groups can I request on a proposed config change?”
Tell an agent
Open a review on dynamic config {id} proposing {change}, described as {description}.
Request review from {reviewer_ids} for change {change} on dynamic config {id}: {description}.
GET
/console/v1/dynamic_configs/{id}/reviews/{reviewID}
Get one dynamic config review · Get Dynamic Config Review
#
Ask an LLM
“What change does a specific dynamic config review propose?”
“Can I check the status of one review on a dynamic config?”
Tell an agent
Show review {reviewID} on dynamic config {id}.
Get the proposed change in review {reviewID} for dynamic config {id}.
PUT
/console/v1/dynamic_configs/{id}/reviews/{reviewID}
Edit a pending dynamic config review · Edit Dynamic Config Review
#
Ask an LLM
“Can I change the reviewers on a review I already opened for a dynamic config?”
“Is it possible to revise the proposed change in an open dynamic config review?”
Tell an agent
Replace the reviewers on review {reviewID} of dynamic config {id} with {reviewer_ids}.
Update review {reviewID} on dynamic config {id} to propose {change}.
DELETE
/console/v1/dynamic_configs/{id}/reviews/{reviewID}
Cancel a dynamic config review · Cancel Dynamic Config Review
#
Ask an LLM
“Can I withdraw a dynamic config change review that's no longer needed?”
“Is there a way to cancel an open review on a dynamic config?”
Tell an agent destructive · confirm first
Cancel review {reviewID} on dynamic config {id}.
Withdraw pending review {reviewID} for dynamic config {id}.
PUT
/console/v1/dynamic_configs/{id}/reviews/{reviewID}/approve
Approve a dynamic config review · Approve Dynamic Config Review
#
Ask an LLM
“Can I approve a teammate's proposed dynamic config change?”
“Can I leave a comment when approving a dynamic config review?”
Tell an agent
Approve review {reviewID} on dynamic config {id}.
Approve review {reviewID} for dynamic config {id} with comment {reason}.
PUT
/console/v1/dynamic_configs/{id}/reviews/{reviewID}/commit
Commit an approved dynamic config review · Commit Dynamic Config Review
#
Ask an LLM
“How do I apply an approved review so the dynamic config change goes live?”
“Can I commit a reviewed change to a dynamic config?”
Tell an agent
Commit review {reviewID} on dynamic config {id}.
Apply the approved change from review {reviewID} to dynamic config {id}.
PUT
/console/v1/dynamic_configs/{id}/reviews/{reviewID}/reject
Reject a dynamic config review · Reject Dynamic Config Review
#
Ask an LLM
“Can I turn down a proposed change to a dynamic config?”
“Is a reason required when rejecting a dynamic config review?”
Tell an agent
Reject review {reviewID} on dynamic config {id} because {reason}.
Decline the change in review {reviewID} for dynamic config {id}, reason {reason}.
GET
/console/v1/dynamic_configs/{id}/rule/{ruleId}
Get one rule on a dynamic config · Get Specific Dynamic Config Rule
#
Ask an LLM
“What conditions and return value does a single dynamic config rule have?”
“Can I fetch one rule of a dynamic config by its rule ID?”
Tell an agent
Show rule {ruleId} on dynamic config {id}.
Get the conditions and return value of rule {ruleId} in dynamic config {id}.
PATCH
/console/v1/dynamic_configs/{id}/rule/{ruleId}
Update one rule on a dynamic config · Update Dynamic Config Rule By Id
#
Ask an LLM
“Can I change the pass percentage of just one rule on a dynamic config?”
“Is it possible to edit the conditions of a single dynamic config rule?”
Tell an agent
Set rule {ruleId} on dynamic config {id} to pass {passPercentage} percent.
Update the conditions of rule {ruleId} in dynamic config {id} to {conditions}.
DELETE
/console/v1/dynamic_configs/{id}/rule/{ruleId}
Delete a rule from a dynamic config · Delete Dynamic Config Rule
#
Ask an LLM
“Can I remove a single targeting rule from a dynamic config while keeping the rest?”
“Does removing one rule leave the other rules on a dynamic config in place?”
Tell an agent destructive · confirm first
Delete rule {ruleId} from dynamic config {id}.
Remove targeting rule {ruleId} on dynamic config {id}.
GET
/console/v1/dynamic_configs/{id}/rules
Get dynamic config rules from the Console API v1 · Get Dynamic Config Rules
#
Ask an LLM
“Can the Console API v1 list all rules of a dynamic config in one call?”
“Which rules does the v1 console report for a given dynamic config?”
Tell an agent
Get all rules for dynamic config {id} from the v1 console.
Pull the rule list of dynamic config {id} via Console API v1.
PUT
/console/v1/dynamic_configs/{id}/unarchive
Unarchive a dynamic config · Unarchive Dynamic Config
#
Ask an LLM
“Can I restore a dynamic config that was archived?”
“Can I record why an archived dynamic config is being brought back?”
Tell an agent
Unarchive dynamic config {id}.
Restore archived dynamic config {id} because {unarchiveReason}.
GET
/console/v1/dynamic_configs/{id}/versions
List a dynamic config's version history · List Dynamic Config Versions
#
Ask an LLM
“What earlier versions of a dynamic config exist?”
“Can I see which dynamic config versions changed within a date range?”
Tell an agent
List versions of dynamic config {id}.
Show versions of dynamic config {id} modified between {startDate} and {endDate}.